Matt Tyson

Results 34 comments of Matt Tyson

I'm getting this error and I have no idea why.

> `session.token.undefined` in your `Nav.svelte` is `undefined`. Try `session.token.username`. Sorry, that was a typo. Fixed.

Another piece of info: If I reload the page (after login) the usename field then displays properly: `${"_id":"kjbLgeU8k3GPr6jBd8NkCj","username":"matt123","password":"$2b$10$aXMJc64o9W166OL12CG/A.lWyuB9zdPkaNUsze3Lch6Z2khHaTKY.","access":"user"} - $"matt123"`

Thanks @mikeoptics . It's strange, if I use `window.location.href`, it works ok, but if I use `goto()` it has this problem.

Ah, I will give await a try, thanks @Vaibhav-Kulkarni-4 !

**I have been troubleshooting, and it has something to do with the SVG elements. If they are removed from the app, the problem goes away.**

Here is minimal repro: https://github.com/MTyson/sapper-bug Just the starter template with a couple icons in it. It is running here: http://rfrndm.com/ Just reload a couple times and you'll see it.

![image](https://user-images.githubusercontent.com/54382/109088307-6ed83080-76cc-11eb-87c1-47477447e29e.png)

Where would one start debugging this? I can start digging in the code. I guess when sveltekit comes out this will be obviated...

> What I did notice on refresh is some severe layout shift, as if you're not fully understanding how SSR works, and are doing a lot of your work in...