Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brunnerh opened this issue Dec 30, 2024 · 1 comment
Open

Comments

@brunnerh
Copy link
Member

brunnerh commented Dec 30, 2024

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

@Ocean-OS
Copy link
Contributor

This is part of what #14599 will do when it's finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants