I can't have debug tool enabled in one of my apps, it will crash the whole retool app on loading my app. If I had open recent app enabled, that would lead to a crash loop, only option then is wipe Retool App data.
Clues
The debug tool do work on other apps, so it's something inside my app.
My app works fine 100% in the IDE with no error in console. 95% of the time on Samsung Fold, with some odd behavior that would go away if close the whole Retool app and reload.
I do notice switching page on bottom nav tab sometimes slow on device, takes 2-3s, but almost instant in the IDE. It's not query loading time as they are cached and load on start.
Tested on a few other Samsung, same slowness, same dev tool crash, so it's extremely unlikely to be CPU power or device related
I thought it was lodash, but I went and removed most of lodash code, no improvement. There might be a few lodash used in {{}}
which are very hard to find now, but everything does work as expected.
Would someone be able to point some direction where to start looking? I know it's not much error description to go by, but I really can't provide any more info without debug tool working....
Here's the performance page in IDE that might give some sense of scale
Here's the linting page, 99% of them is because I have a lot conditional show/hire or default value that depends on query or field input that only get value on certain page load.