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

[React Hooks] wrong error when hooks are called outside <AblyProvider> #1849

Open
ttypic opened this issue Aug 21, 2024 · 0 comments
Open

[React Hooks] wrong error when hooks are called outside <AblyProvider> #1849

ttypic opened this issue Aug 21, 2024 · 0 comments
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@ttypic
Copy link
Collaborator

ttypic commented Aug 21, 2024

When any hook is called outside <AblyProvider>'s context:

Expected:

Could not find ably client in context. Make sure your ably hooks are called inside an <AblyProvider>

Actual:

TypeError: Cannot read properties of undefined (reading 'client')

┆Issue is synchronized with this Jira Task by Unito

@ttypic ttypic added the bug Something isn't working. It's clear that this does need to be fixed. label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

No branches or pull requests

1 participant