question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

don't sync values which are `ref`'d

See original GitHub issue

Right 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dai-shicommented, Feb 14, 2022
1reaction
dai-shicommented, Feb 14, 2022

#23 is updated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found