react-hooks
react-hooks copied to clipboard
The recommended way to use Ably in React components
This will allow us to see usage of `react-hooks`. Refer to the spec ([RSC7d](https://sdk.ably.com/builds/ably/specification/main/features/#RSC7d)) for more details.
useChannel doesnt have access to any state. The data gets refreshed from the server. When I try to check the data value from the server its undefined. So If i...
Heya, so we're getting this log (I think due to brave browser blocking requests) - it does eventually connect (as the error code associated with this log says it will...
Hi, I just tried the hooks on a very simple project with NextJS. In development, I get an error on HMR ([Fast Refresh](https://nextjs.org/docs/basic-features/fast-refresh)), because (I think) the connection is closed...
I was thinking of some way to conditionally subscribe, but the hook does not allow for that. As a work-around, I would like for the useChannel hook to subscribe only...
A key feature of ably is to receive the last message, but the react hook do not expose the history. https://ably.com/docs/storage-history/storage#persist-last-message
Library publishes several unnecessary files to the final package. We need to remove those files from the package
Replaces the `FakeAblySDK` mock. Currently doesn't work due to some timing issue. The tests all pass when run individually but something is leaking state between tests in `useChannel.test.tsx`.
Replaces vitest with jest. Partially resolves #56.