Skip to content

EventClient provider for React #23

@ahoward2

Description

@ahoward2

React query does this very well.

Right now using the EventClient at the top of an application works just fine, but on a page level or in deeply nested components the only way to pass an instantiated client down would be through prop drilling (ew).

What we can do is create a context provider that takes the query client as a prop and exposes useful hooks such as useClient.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions