solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

Hydrated not initialized on load

Open atk opened this issue 3 years ago • 4 comments

The hydration scripts ([route].[hash].js) are prefetched, but only loaded on re-routing from another page. Events that are supposed to be there on load are missing.

Example:

  • load https://atk.github.io/solid-cheat-sheet/ -> scroll bars show that tooltips are not positioned correctly
  • load https://atk.github.io/solid-cheat-sheet/404.html, click link "Cheat Sheet" -> no scroll bars, tooltips are positioned correctly

atk avatar Nov 03 '22 11:11 atk

I have the same problem since 0.2.2, should be fine if you downgrade to either 0.2.1 or 0.2.0

ghost avatar Nov 03 '22 12:11 ghost

Ohh is this a new problem.. hmm thats even weirded.. let me look at it.

nksaraf avatar Nov 03 '22 17:11 nksaraf

Ohh is this a new problem.. hmm thats even weirded.. let me look at it.

Yeah, basically activeClass on <A> and a few more things are completely broken, not sure which specific version it occurred on, it's in the 0.2.1-0.2.3 range, but it seems like a good time to set up a few automatic e2e test runners to prevent these things from slipping through

ghost avatar Nov 03 '22 18:11 ghost

I can confirm that it occurs on 0.2.2, but not in 0.2.1.

atk avatar Nov 03 '22 20:11 atk

I'm gathering this is still an issue with the latest?

ryansolid avatar Dec 21 '22 22:12 ryansolid

It is initialized if the base is "/". It still does not work if you have a directory in front of your root path.

atk avatar Dec 28 '22 13:12 atk

I have tested yesterday and the issue if you use a sub path still persists with the current version.

atk avatar Jan 29 '23 13:01 atk