Closed frederikhors closed 2 months 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!
As soon as you create a core part I can help with the Svelte version.
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.
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.
Everything is in order now.
docs on core piece: https://resthooks.io/docs/api/Controller
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
If you'll like to converse over this, feel free to join the Rest Hooks Discord and ping me there https://discord.gg/35nb8Mz
Closing due to inactivity. Please open a new ticket or start a discussion to discuss strategies.
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!