Skip to content

Allow overriding RoutingContext instead of createElement #1870

@taion

Description

@taion

Looking at the integration points into Router, it seems like it would make more sense to have the RoutingContext be the point for customizing the router's render behavior, rather than createElement.

For example, for integrating with Relay, one thing I want to do is to inject a Relay.RootContainer at top level. This is awkwardly possible right now using context (the element that doesn't get the context is the root element), but it'd be a lot easier if I could just control my own RoutingContext rendering.

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