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

[✨] Add the unwrapProxy as a Low-Level API #6135

Open
genki opened this issue Apr 19, 2024 · 3 comments
Open

[✨] Add the unwrapProxy as a Low-Level API #6135

genki opened this issue Apr 19, 2024 · 3 comments
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: enhancement New feature or request

Comments

@genki
Copy link
Contributor

genki commented Apr 19, 2024

Is your feature request related to a problem?

As the proxy object is not cloneable, so for example, it is need to be serialized/deserialized to store into the indexedDB.

Describe the solution you'd like

If there is a way to get the target object of the proxy object as like as the Vue's toRaw, we can use it directly to store into the indexedDB.

Describe alternatives you've considered

ThegetProxyTarget function can also solve this problem.

Additional context

No response

@genki genki added STATUS-1: needs triage New issue which needs to be triaged TYPE: enhancement New feature or request labels Apr 19, 2024
@genki
Copy link
Contributor Author

genki commented Apr 29, 2024

No one has this issue?
If you want to save the state into the IndexedDB, this issue enforce us to serialize the object and lost its structure in the DB.
I think it is necessary that the way to get the target object of the proxy in application layer.

@PatrickJS
Copy link
Member

@genki you're talking about useStore value correct?

@genki
Copy link
Contributor Author

genki commented May 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants