reactive / data-client

Async State Management without the Management. REST, GraphQL, SSE, Websockets
https://dataclient.io
Apache License 2.0
1.93k stars 93 forks source link

For Svelte too? #1113

Closed frederikhors closed 2 months ago

frederikhors commented 3 years ago

I would very much like to hear that there is a version of this splendid project for Svelte! I beg you! Tell me it exists!

ntucker commented 3 years ago

There is currently nothing, however most of the library is react agnostic, and we are currently working on pulling out most of the rest of the core logic so the react-specific part is very small.

If you know anyone interested in developing a svelte version we would be happy to collaborating and helping as we can!

frederikhors commented 3 years ago

As soon as you create a core part I can help with the Svelte version.

ntucker commented 3 years ago

An update on timeline here. We're getting close to 6.0 release. 6.1 will have full 'controller' defined here: https://resthooks.io/blog/2021/08/29/Experimental-useController#whats-next which will provide easy integration with other view libraries.

ntucker commented 2 years ago

6.1.2 has everything needed to start working, except a good example. The key to getting normalized response is using https://resthooks.io/docs/api/Controller#getResponse and https://resthooks.io/docs/api/Controller#getError

New hooks will be written that will be better examples, but in case you want to get started now, everything is in place in the current version.

ntucker commented 2 years ago

Everything is in order now.

Shared

docs on core piece: https://resthooks.io/docs/api/Controller

React specific examples

Example data binding: https://github.com/coinbase/rest-hooks/blob/master/packages/experimental/src/hooks/useSuspense.ts

Example provider: https://github.com/coinbase/rest-hooks/tree/master/packages/core/src/react-integration/provider

ntucker commented 2 years ago

If you'll like to converse over this, feel free to join the Rest Hooks Discord and ping me there https://discord.gg/35nb8Mz

ntucker commented 2 months ago

Closing due to inactivity. Please open a new ticket or start a discussion to discuss strategies.