currently i am facing some issues in my redwood project wich have to do that in strict mode react runs useEffect twice (which in gereral is a nice idea), but since i am also running babylonjs in my project, sometimes it is hindering a lot.
my dirty fix for that problem is, to build the project completely in a docker -production environment, and run it from there. it works, but takes ages to build the whole thing every time i want to see the changes.
is there any way to conveniently use yarn rw dev but run it in production mode, to get rid of the double loading of react?
You can’t really run dev in production easily — since the intent of dev is to run in dev.
However you can run a productivity locally.
Just “yarn rw build” and “yarn rw serve”.
That will use the production environment— but that has some critical side effects that you may not want like using other production settings you may have like envars and such.
And as you said — there’s the build time.
I think its likely better to try to diagnose the underlying use effect issue