sapper icon indicating copy to clipboard operation
sapper copied to clipboard

Navigation stuck if depending on the same CSS over multiple components

Open trmcnvn opened this issue 4 years ago • 1 comments
trafficstars

If you have a setup such as this:

components/
  Header.svelte // Includes <style /> CSS
routes/
  subroute/
    _layout.svelte // Imports Header.svelte
    index.svelte // Imports Header.svelte
  index.svelte // Links to /subroute

Navigation gets stuck on client-side navigation to /subroute, SSR works if going directly to /subroute.

This was introduced in Sapper v0.28.7 as previous versions work as expected.

I've set up a replication here: https://github.com/trmcnvn/sapper-css-replication

trmcnvn avatar Mar 22 '21 09:03 trmcnvn

Fixed by #1790

trmcnvn avatar Aug 24 '21 00:08 trmcnvn