Giter VIP home page Giter VIP logo

Comments (5)

hitsthings avatar hitsthings commented on May 30, 2024

I'm also using React 18 so maybe there is some weird complication with the double useEffect in dev that they've added.

from prosemirror-dev-toolkit.

TeemuKoivisto avatar TeemuKoivisto commented on May 30, 2024

Hey @hitsthings thanks for the bug report! Yeah probably something like that is happening, it's not entirely bullet-proof hack. Any chance you can link a reproduction where the bug occurs? Like a TipTap example with dev-toolkit added? I want to add a test case for it if possible so I won't accidentally break it down the road.

from prosemirror-dev-toolkit.

hitsthings avatar hitsthings commented on May 30, 2024

https://github.com/hitsthings/prosemirror-dev-toolkit-tiptap-test shows it.

Commands I ran to set it up:

npx [email protected] prosemirror-dev-toolkit-tiptap-test --template tiptap
npm install prosemirror-dev-toolkit npm start

Then I edited Tiptap.jsx to add an "s" after "World". This worked fine.

Then I ran applyDevTools() in a useEffect in the TipTap component. This worked fine.

Then I removed the "s" from "Worlds". This caused a console error similar to the reported one and the message no longer printed in the browser.

Every other edit thereafter had a similar error.

Hope that helps! I dunno how you would test HMR stuff. 😬
Thanks for the toolkit!

from prosemirror-dev-toolkit.

TeemuKoivisto avatar TeemuKoivisto commented on May 30, 2024

Thanks, that helped a lot! Should be fixed in 1.0.6 version

from prosemirror-dev-toolkit.

hitsthings avatar hitsthings commented on May 30, 2024

Awesome, thank you!

from prosemirror-dev-toolkit.

Related Issues (13)

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.