Closed otaviogaiao closed 3 months ago
I did some more investigating. And by looking at the gem code, the component is only rendered when the status of the page is complete. Wouldn't interactive be a more appropriated state to mount the components?
@otaviogaiao how would know if required assets have loaded? SSR solves the problem of quick rendering.
Environment
Expected behavior
React component should mount when all javascript and html is loaded.
Actual behavior
If I have image tag referencing an url that its taking a long time to load. The React Component wont show up on the screen until its done or I click on cancel loading button on the browser.
I tried to use
And it makes the component show up, however the following warning appears once the page loads:
But more worrying is that if I start to edit the content on my React Component before the page finishes loading, once it does, it will erase the content, and if in development mode it will show a big alert on the screen with the error:
I am not using turbo links on this project. I have stimulus in a few components, and my application.js is as follow:
My javascript is being loaded through:
Here is a print of the errors:
I'm sorry if this is the wrong place, I didn't know where else to go. Looked all over for a solution, but was unable to find it.
Any help is appreciated.