nikivi
Explore posts from serversHelp integrating microfuzz search library with solid
I want to integrate this library into my component
https://github.com/Nozbe/microfuzz
I have this code for it:
https://github.com/learn-anything/learn-anything/blob/main/app/packages/electron-web/src/components/SearchModal.tsx
126 replies
Help rendering markdown gotten from server using createResource
code here:
https://github.com/learn-anything/learn-anything/blob/main/src/routes/%5Buser%5D/%5Btopic%5D.tsx
11 replies
Why do keyframes not work in <styled> in SolidJS
I have loader component: https://github.com/nikitavoloboev/kuskus/blob/main/src/components/Loader.tsx
13 replies
Need help solve issue with createEffect, complex state
I have the app here https://github.com/nikitavoloboev/kuskus
19 replies
Why autofocus on input element not work with solid second time
I have this code: https://github.com/nikitavoloboev/kuskus
Here I do conditional render of
NewTodo
:
https://github.com/nikitavoloboev/kuskus/blob/main/src/pages/Today.tsx#L14
Here is input
with autofocus
https://github.com/nikitavoloboev/kuskus/blob/main/src/components/NewTodo.tsx#L37
For some reason when I create a first todo, autofocus
works but second time it does not.
Even though solid mounts it twice. onMount
runs twice.
What is going wrong? Is there a better way to achieve bringing focus to input box?193 replies
How would I wrap over some p5.js code to create a solid component
I want to make confetti in Solid. I found this Codepen: https://codepen.io/Gthibaud/pen/ENzXbp
I am thinking though how can I use it. Do I have to rewrite the js code to work for solid or can I wrap over p5.js somehow and put it inside my solid app?
API wise I want to essentially create <Confetti /> and then have conditional render in one of the routes to render <Confetti /> for say 2 seconds after successful form submit.
2 replies
Don't fully understand solid's reactivity, help understand with a case
I have this repo https://github.com/Kisuyo/todo
I created a component: https://github.com/Kisuyo/todo/blob/master/src/components/HamburgerMenu.tsx
I also created a route with a signal: https://github.com/Kisuyo/todo/blob/master/src/routes/index.tsx#L22
I am coming from react so perhaps this is confusing to me but I thought that as I pass both the signal and the setter of signal to component here: https://github.com/Kisuyo/todo/blob/master/src/routes/index.tsx#L42
I thought when I try to change the signal state the dom should update but it doesn't.
Doing solid tutorial again perhaps I misunderstand how reactivity works. Thank you for any help.
6 replies
How to do nested <For
I have a signal that is array of arrays
I want to render it out on screen and for solid to update it. However I read https://www.solidjs.com/tutorial/flow_for and still not too sure how to do nested <For.
I tried this:
But it doesn't work.
In react it's quite simple, I just do
Thanks for any help.
100 replies