Revxrsal
dev environment constantly not showing pages correctly
o/ i'm running into weird issues with my dev environment. certain pages do not work, and signals/resources also seem to break. any idea?
something probably relevant: the
download.tsx
file in /routes/ was called subscriptions.tsx
earlier. i renamed it, and stuff seemed to break. this also seemed to repeatedly happen when i create a new route or a new file. any idea?6 replies
an error that occurs every time something changes, but disappears with refresh
o/ i've run into some really odd behavior today. whenever i change anything in my code, the hot reload thing does its job but the program runs into this error
this occurs whenever i use this component: https://gist.github.com/Revxrsal/ac9fecc2e5b8acfca30070929d7b42dd
(i extracted the component from https://github.com/x64Bits/solid-icons)
the error appears only after i change something, then disappears after a full refresh. it's really annoying as this means i have to comment-out icons while developing, or need a full reload on every small change. any idea?
1 replies
solid-router not updating when going the same page but with different parameters
o/ so i have this in
/routines/[id].tsx
:
for some reason switching between two different pages of the same route (e.g. /id/1 and /id/2) doesn't change the routine
and setRoutine
. am i doing something wrong? (notice the address changing but the content remaining)13 replies
updating a member inside another member inside an array inside a store using an index
o/ so i have data structured as follows, which is inside a store:
when i do this:
modifying works fine. but i have an effect subscribed to it
this doesn't get re-triggered when the
data
changes. any idea?11 replies
solid build works, vite build doesn't
i have a website that should be SSG'd for use in a Tauri app (https://tauri.app/). when i run
solid build
, it works fine. vite build
doesn't though. am i supposed to worry?
5 replies
add keybinds to buttons
o/
i'd like to make my website possible to use using a keyboard only (similar to monkey type), so i came up with this (probably half-baked) solution to easily bind buttons to keyboard buttons using everything i know about solidjs
here it is: https://gist.github.com/Revxrsal/105163383fa6e84448ff0ad733301b9b
where i use it like this:
is there any way to optimize it or improve it? (there are probably things that would make my life easier but i'm not aware of)
1 replies
Interpolate percentage?
o/ I have this basic clock implementation (https://gist.github.com/Revxrsal/faf598ac48efb9db0b11769ce9ac408d)
and it renders like this: https://gyazo.com/804070195d25a5cc5baf4115af74f30a
I wonder if there's any way to make it smoother? I know other UI libraries (not in web dev tho) that achieve this with animating floats by interpolating them into certain values. maybe solid-transition-group can help?
3 replies
click outside directive in typescript
o/ i'm trying to implement https://www.solidjs.com/tutorial/bindings_directives?solved but in typescript. not sure what to fill types in (other than
any
). any idea?30 replies