Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For Svelte too? #1113

Open
frederikhors opened this issue Aug 12, 2021 · 6 comments
Open

For Svelte too? #1113

frederikhors opened this issue Aug 12, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@frederikhors
Copy link

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 frederikhors added the enhancement New feature or request label Aug 12, 2021
@ntucker
Copy link
Collaborator

ntucker commented Aug 16, 2021

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
Copy link
Author

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

@ntucker
Copy link
Collaborator

ntucker commented Aug 31, 2021

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
Copy link
Collaborator

ntucker commented Oct 10, 2021

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
Copy link
Collaborator

ntucker commented Oct 17, 2021

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
Copy link
Collaborator

ntucker commented Oct 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@ntucker @frederikhors and others