Skip to content
Discussion options

You must be logged in to vote

Hi, thanks a lot for the detailed write-up and the concrete example – this is exactly the kind of context that makes these questions much easier to reason about.

Let me go through your questions one by one.


1. Circular references

Mutative conceptually treats the state it manages as a tree / DAG, not as a general object graph with arbitrary cycles. Circular references are not something we aim to support as a feature.

When enableAutoFreeze is turned on, Mutative will in development mode:

  • freeze the produced state, and
  • run a circular-reference check while traversing the structure.

Important detail for your use case:
the current circular-reference checker only follows “regular” keys (strin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshkel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants