Skip to content

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

@ttypic

Description

@ttypic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. It's clear that this does need to be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions