Skip to content

context #9

@tombl

Description

@tombl

a goal I have for this library is to decouple the data tree and the render tree, or have the data tree drive the rendering instead of the other way around.

this implies little ownership over the data tree, so we can't provide utilities like context for the general data case. however, there are a few cases where the ability to scope data to the render hierarchy is useful, e.g. in a userland suspense/error boundary implementation.

however, many uses of context are actually better suited to the tab or browser scope (current theme, dialog state, query caches, auth, etc.), so maybe we can get away without any context mechanism.

if we can implement those few core use cases in the library itself, we won't need to expose a primitive to do the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    notesthoughts about direction and features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions