You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are migrating our Slinky project from Scala 2 to Scala 3 and we have problems when we initialize slinky-hot, causing pages to fail to load and print console.errors in the browser console
To reproduce this we are calling hot.initialize() in the Main file. Removing hot.initialize() solves the load problem
That is very strange, might be some weird interaction between the proxied hot-reloading class. I'll try to test locally when I get a chance, might be a bit before I can get to it though unfortunately.
In the meantime, is using React Refresh via https://github.com/pmmmwh/react-refresh-webpack-plugin an option? It does miss out on preserving component state but that's what I use via Next for the docs site. The current hot reloading support depends on a very old library, so might be worth investing in Refresh for the future.
We are migrating our Slinky project from Scala 2 to Scala 3 and we have problems when we initialize slinky-hot, causing pages to fail to load and print console.errors in the browser console
To reproduce this we are calling
hot.initialize()
in the Main file. Removinghot.initialize()
solves the load problemOur project in the scala 3 branch https://github.com/wiringbits/scala-webapp-template/tree/scala3
Browser console errors
Main.scala
The text was updated successfully, but these errors were encountered: