eklem / sidx-svelte-components

Search-index components for Svelte to quickly create your own browser based search engine.
MIT License
0 stars 0 forks source link

Some issues possibly with combination svelte & search-index #10

Closed eklem closed 1 year ago

eklem commented 4 years ago

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

eklem commented 4 years 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?

eklem commented 4 years ago

Seems search-index or node-dependencies may be the problem.

eklem commented 4 years ago

Or a combination of svelte and search-index + dependencies.

eklem commented 4 years ago

Test with new version of search-index. Swap to async-await since that seems to be what's documented for search-index now.

eklem commented 3 years ago

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

eklem commented 1 year ago

Not going to use Svelte https://github.com/eklem/sidx-svelte-components/issues/16