don't sync values which are `ref`'d
See original GitHub issueRight now, in setPValueToY
and insertPValueToY
from bindProxyAndYMap
and bindProxyAndYArray
functions respectively, it’s not checked that a value stored in valtio (a “p” value) is ref
’d.
As a result, non-proxied objects are subscribed to, resulting in an error within subscribe
Uncaught TypeError: Cannot read properties of undefined (reading 'add')
proxyObject[LISTENERS].add(listener);
Expected behavior is that values which are ref'd
(refSet.has(value) === true
) should be excluded from syncing.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
OneNote Syncing but "Not Connected" (red X) and NO error ...
When it does try to sync, it will change to the usual green sync icon, and then go back to the red X....
Read more >xamDataGrid and Snoop out of sync - Forums - Infragistics
however Snoop reports it is fine! ie Foreground color is red on a selected grid cell - but the cell displayed still has...
Read more >What Color is Your Function? - Bob Nystrom - stuffwithstuff
Red functions are asynchronous ones. js, everytime you define a function that “returns” a value by invoking a callback, you just made a...
Read more >Diverging color palette in a line chart won't sync up with axis ...
Diverging color palette in a line chart won't sync up with axis (semi-noob) ... Week 25 (first week) has a value of ~...
Read more >Failed to synchronize cache for repos for RHEL 8
When I run dnf repolist on rhel 8 enabled machine I see the following error "Failed to synchronize cache for repo" as seen...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published: https://www.npmjs.com/package/valtio-yjs/v/0.3.1
#23 is updated.