Mateusz Wojciechowski
Mateusz Wojciechowski
Really? No answer to this? Been having this issue for weeks now..
@FuuKowatty Thanks for this! I actually threw away the react components and used a standard way: ` const ImageCarousel = ({ imagesUrls }: ImageCarouselProps) => { const { selectedItem }...
This is because of React 18 automatic batching, the workaround for this is to disable the concurrent rendering when trying to update the state. You can do it using `flushSync()`...
After updating to 1.16.1 I get `Module not found: Error: Can't resolve 'react/jsx-runtime'` for this package :/. If I revert to 1.13.1 all is good
If i try your workaround `import {JsonEditor} from 'json-edit-react/build/index.cjs'`, it works but I lose all typescript types and I can't ts-ignore everything
@CarlosNZ Unfortunately I am unable to test this at the moment. We needed a really performant solution for the JSON viewer as our jsons can be huge, so we decided...