Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Freactal doesn't work well with recursive state provider components. #104

@go1dfish

Description

@go1dfish

Consider a rendering of nested comments.

Say you build up a state provider "withReplies" that takes an id prop and fetches replies to put in the state.

This withReplies approach works great, until you attempt to nest these components, as a error is thrown

Uncaught TypeError: Cannot redefine property: <piece of state like the id goes here>

Is there a way I can nest fractal state providers such that the inner most states replace the outer most states in their scope?

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