cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Playground erases all page

Open m4tr1k opened this issue 6 years ago • 2 comments

I'm always in touch with this repo, and I like a lot what you are doing, hope that one day I could help you on another issue! But first take a look at this one.

Describe the bug If you go to Playground (on cosmos website) and erase Example on render(Example), the whole page is erased, I need to refresh the website to go to Playground again and navigate the website.

Expected behavior Give an error on preview

Screenshots Erase what's highlighted to see what's happening capturar

Cosmos version: 0.93

m4tr1k avatar Dec 04 '18 20:12 m4tr1k

Hi @m4tr1k! Thank you for the words, it means a lot :)

Also thank you for reporting this, as I can see the React Invariant 152 is raised and the whole app breaks. We should catch that in the container.

https://reactjs.org/docs/error-decoder.html/?invariant=152&args[]=r

francocorreasosa avatar Dec 04 '18 20:12 francocorreasosa

@francocorreasosa @landitus Care if I take a shot at this one? Were you thinking it should be caught with componentDidCatch in playground.js?

cliffpyles avatar Mar 29 '19 22:03 cliffpyles