Giter VIP home page Giter VIP logo

Comments (3)

YousefED avatar YousefED commented on May 19, 2024 1

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.

image

from syncedstore.

YousefED avatar YousefED commented on May 19, 2024 1

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.

jasonm avatar jasonm commented on May 19, 2024

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:

image

from syncedstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.