Ray Kholodovsky - standalone.min.js:199 Uncaugh...

standalone.min.js:199 Uncaught Error: Rendered fewer hooks than expected. This may be caused by an accidental early return statement. I experienced an error like this a number of times this morning, but it was fleeting - normally I'd refresh the browser and it would be gone. Kind of felt like a "loaded slightly too fast thing" like a super mild version of the race condition bug before. No idea how to repro, nbd, just wanted to mention in case anyone sees it.
5 Replies
Seve
Seve2mo ago
the race condition is supposed to be fixed, (CC @shibo i think we've fixed the race condition?)
shibo
shibo2mo ago
I believe so, we'd need a repro for this
Ray Kholodovsky
Ray KholodovskyOP2mo ago
Yeah it’s fine for now. I get the feeling that it’s timing related: change a bunch of stuff, the browser reloads, and it just needed a second to finish loading everything. Cuz refresh again and the issue goes away and all is normal.
Seve
Seve2mo ago
@Ray Kholodovsky so what we implemented makes it so the browser shouldn't "run any code" until the CLI confirms all files were uploaded. Ideally users never have to refresh- but maintainers usually work on smaller projects than yours (less files, less models etc.). Let us know if you find yourself refreshing a lot! We just don't have a good setup for the race conditions!
Ray Kholodovsky
Ray KholodovskyOP2mo ago
it's ok for now. fairly mild, and large project llike you said. no worries.

Did you find this page helpful?