w
wrk
79 Joined about 2 months ago
How can I deal with `localStorage` in SvelteKit SSR?

You're getting that error because the code to initialize display is getting run on the server, and the server does not have access to browser APIs like window. To solve this you can use browser to check if ...

1 vote Posted about 1 month ago
w
79
How can I convert an integer to a string in Zig?

In Zig, you can convert integers to strings using either bufPrint or allocPrint formatting functions in std.fmt depending on your needs. You can use std.fmt.bufPrint to write the formatted integer...

0 votes Posted about 2 months ago
w
79