-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] Subscribe mode #913
[WIP] Subscribe mode #913
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 48cb5c2:
|
would be awesome to get this in - we'd use it right away! |
@huozhi @shuding @pacocoursey how far is this from getting into production? |
Close this to file another one with middleware implementation |
@huozhi hey! any updates about it? |
The implementation is moved to #1263 |
Draft solution to #728
To support subscription / disposable / observable data source, adding a new hook useSWRSubscription built on top of useSWR.
API
the purpose is to provider users enough flexibility to manage their own subscription/disposable on user land, but still keep the argument shape different from function type fetcher.
Usage