Skip to content

Update to use Relay's hook API #616

Open
@multimeric

Description

@multimeric

It seems that all the examples in the readme and indeed the example repo use the old createFragmentContainer API, which is no longer recommended: https://relay.dev/blog/2021/03/09/introducing-relay-hooks.

It would be great to have an example (perhaps a new branch in the todomvc repo?) explaining how to do this, because I'm totally lost. In particular the idea of "fragment references" and how to pass them into the top level components is confusing to me.

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