Svelte being weird

17 Replies
Zach Jensz
Zach JenszOP•3y ago
the if check for lobby isnt triggered but then status is rendered as lobby at the end @b1mind please explain sir
b1mind
b1mind•3y ago
Don't tag people/mods for questions sir I'm still waking up and you over-complicated code always makes me crazy give me a sec Like this whole abstraction just scares me already idk know whats going on.
Jochem
Jochem•3y ago
my first guess would be that status or uuid updates aren't triggering reactivity
Zach Jensz
Zach JenszOP•3y ago
I'm mod I can break the rules I tried with the $ and it no work
b1mind
b1mind•3y ago
This is a great guess, but yea we need to see more of the code put it in a repl
b1mind
b1mind•3y ago
SvelteLab
SvelteLab
A REPL for SvelteKit projects: quickly spin up a SvelteKit project and share it with the world.
Zach Jensz
Zach JenszOP•3y ago
it has client and server
b1mind
b1mind•3y ago
Then use the thing I just linked you..
Zach Jensz
Zach JenszOP•3y ago
probs quicker to figure out myself but I will learn your repl thing hehe
b1mind
b1mind•3y ago
Its amazing honestly they guys did a great job and won their category for the hackathon with it. But its uses web containers like learn.svelte does so you can spin up serverside too.
Zach Jensz
Zach JenszOP•3y ago
I can't see a way to add a separate server
b1mind
b1mind•3y ago
oh its a mono repo? why though?
Zach Jensz
Zach JenszOP•3y ago
mono repo but one side kit and other just a node app
b1mind
b1mind•3y ago
😮 Oh cause websockets lol
Zach Jensz
Zach JenszOP•3y ago
because svelte does not support web sockets well and I hated having all my server code in the vite.config.js dw I will fix it myself
b1mind
b1mind•3y ago
Kit needs to add an internal solutions already
Zach Jensz
Zach JenszOP•3y ago
I put matia's socketio tut on the gh issue and it got super popular and how dare you call my code uglyl

Did you find this page helpful?