Comments (5)
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.
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.
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.
Thanks, that helped a lot! Should be fixed in 1.0.6 version
from prosemirror-dev-toolkit.
Awesome, thank you!
from prosemirror-dev-toolkit.
Related Issues (15)
- Devtools yield "URI Malformed" error when unicode emoji present HOT 1
- inject.js not working, bundle.umd.min.js not found HOT 1
- 'svelte-kit' is not recognized as an internal or external command
- 'svelte-kit' is not recognized as an internal or external command HOT 3
- Skips iframes: .ProseMirror not found HOT 24
- Disabled state not persisted HOT 2
- Issue with injected Svelte styles HOT 1
- please document how to rebuild the extension and how to try from git clone HOT 1
- [ UI Enhance ] Choose a more suitable font for the view HOT 2
- Breaking google docs/sheets HOT 1
- multiple editors HOT 4
- Error thrown if page itself loads prosemirror-dev-toolkit HOT 2
- Extension causes bug with NodeView .update not being called HOT 6
- pollutes globals HOT 2
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 prosemirror-dev-toolkit.