itsyoboieltr
Explore posts from serversHow can I only set the ref for an element once it's been inserted into the DOM?
the only solution that worked for me is to migrate my tooltip, and popover components to corvu https://corvu.dev/docs/, which also uses floating-ui, but does not have this issue 😄
47 replies
Is there a way to use the <For> component with an array of inputs?
some feedback to the solid team: it could be that I missed this, but this probably should be more emphasized somehow when using stores. I believe all people coming from react will do it like I tried initially lol
4 replies
Is there a way to use the <For> component with an array of inputs?
TLDR: do not make a deep copy of the whole store and modify the copied array like you would in react, just use the built in helper methods so you do not recreate the whole array on every key press
4 replies
Is there a way to use the <For> component with an array of inputs?
Based on this stackoverflow post, I could make it work:
https://stackoverflow.com/questions/72288357/solidjs-input-field-loses-focus-when-typing
4 replies
createStore default value with anonymous function
btw, to justify the use case: I am getting the queried data from the solid-query cache, and want it to be available as the default state of the store. But this data is not always available of course, it is only available if the cache already has an entry. This is the current solution I ended up doing:
6 replies