Gabriel Rohden

Results 73 comments of Gabriel Rohden

when I opened the issue I took a little look into how to solve.. but like, I don't really know what level of compatibility is wanted for this one, but...

Have the same, plus this log ```sh WARN Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"43327":{},"43329":{},"43331":{},"43333":{},"43335":{},"43337":{},"43339":{},"43341":{},"43343":{},"43345":{},"43347":{},"43349":{},"43351":{},"43353":{},"43355":{},"43357":{},"43359":{},"43361":{},"43363":{},"43365":{},"43367":{},"43369":{},"43371":{},"43373":{},"43375":{},"43377":{},"43379":{},"43381":{},"43383":{},"43385":{},"43387":{},"43389":{},"43391":{},"43393":{},"43395":{},"43397":{},"43399":{},"43401":{},"43403":{},"43405":{},"43407":{},"43409":{},"43411":{},"43413":{},"43415":{},"43417":{},"43419":{},"43421":{},"43423":{},"43425":{},"...(truncated keys)...":451}...

Hmm.. noob mistake, I assumed modal would be stable so my specific issue is related to https://github.com/colorfy-software/react-native-modalfy/issues/132 I've made this to just test the lib ```js const modal = useModal();...

so in theory, the solution is to change the calls to be `clearAllMocks` instead

Oh... btw I couldn't test (in a real project), ever since I've opened this issue we've migrated away from babel & this plugin

@ljharb thats actually... a really good solution, just hope that whatever env people have supports classes 🤔 (~97% of web?) Ill explore classes in this PR then

@ljharb I've setup a nextjs project with babel to test this PR changes and essentially I've discovered that I can't use class components in nextjs server side ```js Error: ×...

@ljharb made the change to polyfill and tested it in my mentioned nextjs project About [this comment](https://github.com/airbnb/babel-plugin-inline-react-svg/pull/129#issuecomment-2525330068) I'm not really sure I want to mutate props, its unlikely that people...

@ljharb yes (actually, isn't it the "only" way to make class component?), but will cause that problem I've mentioned on next and potentially any SSR solution out there 🤔

@ljharb @tthornton3-chwy can you test https://github.com/airbnb/babel-plugin-inline-react-svg/pull/131? Think we can close this one in favor of that I did my tests in my test nextjs example and it seems to be...