proxy returns Proxy<T> instead of T?
#1141
hellozyemlya
started this conversation in
Ideas
Replies: 1 comment
-
|
Is this two questions?
Both are by design, and if you want them differently, you can override Lines 58 to 64 in 3602987 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I personally lack of some of Proxy return type of
proxymethod, so application can be sure it works with proxy, but not with T.I see that by default
useSnapshotreturns fully read-only T, but that seems to be counter-intuitive for react apps, since most of them already treat all hook results as a immutable object, and it seems like for better and easier integration with existing app it will be better to have Proxy and do not force readonly on snapshots in types?Any ideas\comments on this?
Beta Was this translation helpful? Give feedback.
All reactions