data-client icon indicating copy to clipboard operation
data-client copied to clipboard

For Svelte too?

Open frederikhors opened this issue 4 years ago • 6 comments

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!

frederikhors avatar Aug 12 '21 20:08 frederikhors

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!

ntucker avatar Aug 16 '21 00:08 ntucker

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

frederikhors avatar Aug 16 '21 08:08 frederikhors

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 avatar Aug 31 '21 16:08 ntucker

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 avatar Oct 10 '21 06:10 ntucker

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 avatar Oct 17 '21 06:10 ntucker

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 avatar Oct 18 '21 00:10 ntucker