Skip to content

[React Hook] React Hook should emit events on subscription changes #1833

@ewitkon

Description

@ewitkon

When we use React hook to manage the cache we still want to be able to get notified on the changes to the cache, for example, when a new object is added to the cache you might want to present a notification to the user.
One option is to allow for the consumer to register a callback for different events (Add, Delete, Update) and get the updated object, not just the key for the object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions