Closed eklem closed 1 year ago
Look at how this is done here: https://stackoverflow.com/questions/62962028/using-async-await-on-promise-in-svelte-await-is-not-returning-the-desired-dat
Seems understandable. Maybe an issue with search-index too?
Seems search-index or node-dependencies may be the problem.
Or a combination of svelte and search-index + dependencies.
Test with new version of search-index. Swap to async-await since that seems to be what's documented for search-index now.
I'll test this again when search-index v2 comes out. Seems a bit like https://github.com/fergiemcdowall/search-index/issues/504
Also, using a sharedWorker
for all things search-index
could maybe fix things, making it certain only one instance of the search-index is active at the same time?
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker
Not going to use Svelte https://github.com/eklem/sidx-svelte-components/issues/16
Doesn't seem to work for indexing, only partly for fetching:
Try to re-write like done here: https://svelte.dev/repl/5c95e18702764aefa71ff2b4616a6c6e?version=3.20.1