Comments (3)
Hi @jasonm ,
Using undefined / null values should work, especially in boxed values.
The example "repro case" doesn't contain any boxed values, so I doubt it's a good reproduction. I'd love to look alongside with you to see what the issue is. Would it be possible to create a codesandbox where you can reproduce the issue?
Click the box icon in the bottom right to open the corresponding Codesandbox of an example, and then you can share your fork here.
from syncedstore.
Thanks @jasonm! That sandbox definitely made it easier for me. I've fixed this in #35 and will release a new version later today
from syncedstore.
Thanks @YousefED !
Here's a fork of that sandbox (very cool to have such an easy fork-for-repro workflow here, also sandpack looks really cool, gotta dig into that, I digress)
https://codesandbox.io/s/sandpack-project-forked-ot8de?file=/App.tsx
So I (1) updated the type of Todo to include description: string | undefined
and (2) updated the onKeyPress
handler to to provide a description into the newly inserted todo with some logic: if you give the todo a title of "bad", it sets the description to undefined
at which point I see the TypeError: Cannot read properties of undefined (reading 'Symbol(INTERNAL_SYMBOL)')
error:
from syncedstore.
Related Issues (20)
- Feature Request: Immer HOT 1
- Assign boxed objects
- `useMemo` not running when dependency array changes HOT 3
- errors nextjs
- [Bug] Typing issues with bun.sh
- Cannot store undefined in array
- More concise Vue integration
- History and really large updates
- Supporting array assignment HOT 2
- How to handle relations HOT 1
- Reactivity broken since updated @reactivedata/reactivity package released HOT 6
- Warning: `property not found on root doc $$typeof` HOT 1
- Move `@types/eslint` to `devDependencies`?
- Question: Why syncedStore wrap values from YDoc automatically? HOT 3
- Question: How many stores should you create? HOT 1
- Pushing or removing from array causes mobx computed to fire changes = number of array elements + 1
- Making a nested property collaborative rich text editor
- Moving an item between arrays gives error about content already being a part of the tree
- Not sure how to add a new XML fragment HOT 3
- How can I use Y.Map when I init the store? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syncedstore.