Skip to content

Migration guide: Mention $state.snapshot as potentially being required #14866

@brunnerh

Description

@brunnerh

Describe the problem

Third party APIs (and some built-ins like structuredClone) may be unable to deal with state proxies, this can cause errors/confusion.

The fact that proxies are created by $state and how that matters is not explained. (There is only a single mention of proxies in the "Modern browser required" section.)

Describe the proposed solution

  • Explain that objects and arrays are proxied.
  • Give an example where a proxy could cause an error and how $state.snapshot helps.

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions