You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the top level fuzzySort.highlight was replaced in favor of result.highlight you can no longer computer results in a WebWorker and highlight them back in the main thread because the highlight function is removed during the structured clone in postMessage().
When you're using something like React it isn't as simple to perform the highlighting in the worker.
In the meantime I'm using React's startTransition to help unblock the UI and it works well, just wanted to note the limitation.
The text was updated successfully, but these errors were encountered:
Since the top level
fuzzySort.highlight
was replaced in favor ofresult.highlight
you can no longer computer results in a WebWorker and highlight them back in the main thread because thehighlight
function is removed during the structured clone inpostMessage()
.When you're using something like React it isn't as simple to perform the highlighting in the worker.
In the meantime I'm using React's
startTransition
to help unblock the UI and it works well, just wanted to note the limitation.The text was updated successfully, but these errors were encountered: