SvelteStack / svelte-query

Performant and powerful remote data synchronization for Svelte
https://sveltequery.vercel.app
MIT License
814 stars 31 forks source link

You rock! using it but have some troubles with importing it #3

Closed omerman closed 3 years ago

omerman commented 3 years ago

Currently I kind of copied the src folder and importing the files I need in a weird way :)

When can we expect this to be published? or am I missing something?

Thanks

amen-souissi commented 3 years ago

Hello :) We are currently working on a first version of the documentation (https://github.com/TanStack/svelte-query/pull/2) with examples on codesandbox. The release of the first version will probably be for the next few weeks (maybe with this package name @tanstack/svelte-query) Thank you !

omerman commented 3 years ago

@amen-souissi Any news? :grimacing:

omerman commented 3 years ago

@amen-souissi I started using this(a moment ago) ->> @reactstack/svelte-query, it seems to be the same except for the name..

amen-souissi commented 3 years ago

Please don't use it! it's only for testing... the publication process is being automated :)

omerman commented 3 years ago

@amen-souissi While I wait for the official release, Im using it(Not holding anyone else accountable).. there is no other good alternative and it works perfectly. I tested several key features such as enabling/disabling fetches, updating the cached data, prefetching seems to also work..

Anyways I'll keep waiting for the official release, thank you :)

amen-souissi commented 3 years ago

@reactstack/svelte-query@1.0.0-beat.2 published

omerman commented 3 years ago

@amen-souissi Ill have a look today

evdama commented 3 years ago

Hi folks... looks interresting... just came accross it about 10min ago and one question I have is this: how does it relate to e.g. rxjs? Is it build upon or does it require graphQL? Is there anything comparable people might know already so to understand what it actually is? 🤔

Update about 30min after I wrote the above: Ok, I found https://svelte-query.amen-souissi.vercel.app/comparison so it seems when I have a Sapper app on firebase using firestore for example I'd be using the firebase SDK as-is on not benefit in any case from using svelte query. On the other hand, for APIs and providers that don't provide a custom SDK for their APIs but only provide a REST interface, there I could see the benefit of using svelte query yes? Please correct me if I'm wrong! 👍