mattasia
mattasia
SSolidJS
Created by urish on 7/23/2023 in #support
SVG A elements not created correctly
ah I see, it's a different Field return from createForm than imported, ah that makes sense
12 replies
SSolidJS
Created by urish on 7/23/2023 in #support
SVG A elements not created correctly
Tangently, does typescript provide any JSX typing that you could say when a sibling of <svg> this tag applies, I ask, because I've seen tags behave differently in terms of required props in different circumstances, for example <Field> of modular forms is smart enough (TS typing i guess) to make the 'of' prop optional if a child of <Form>
12 replies
SSolidJS
Created by tkirishima on 7/11/2023 in #support
SSR and routes in Solid.JS
True but express/js is ancient on the flip side of the coin is TJ even still maintaining it
10 replies
SSolidJS
Created by tkirishima on 7/11/2023 in #support
SSR and routes in Solid.JS
I imagine it is possible, I would be surprised if it wasn't, but why would you want to do all the route plumbing to/from express routing yourself? is using express's route engine a necessity? otherwise https://start.solidjs.com/core-concepts/routing (all the routing magic for both server and client side all ready for you) and https://start.solidjs.com/core-concepts/api-routes for routes that are only server side
10 replies
SSolidJS
Created by tkirishima on 7/11/2023 in #support
SSR and routes in Solid.JS
10 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
with [...list] it will evaluate every single time you setArticles if [...list] is the argument, with equals: false it will evaluate every single time too, but without the allocation of a new list
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
you also could potential change equals: to false on your signal - presuming you are actually setting it and not just mutating the article array without calling setSignal - this will run the effects even if the equality check is true
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
But better yet use 'on' for explicit depend
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
You can also just discard instead const _ = reorderTag()
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
You also don't need console.log
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
i.e. setArticles([...reOrderedArticles])
23 replies
SSolidJS
Created by Bersaelor on 7/10/2023 in #support
Make createMemo depend on unmentioned signal
Where you set articles in your parent component ensure it's a new object
23 replies
SSolidJS
Created by Kyros on 7/9/2023 in #support
How would you go about Font Awesome icons?
https://heroicons.com/ is another one with straight forward click to copy to clipboard
3 replies
SSolidJS
Created by Kyros on 7/9/2023 in #support
How would you go about Font Awesome icons?
Just paste it in as html, if it gives you React JSX rather than raw HTML you might need to tweak as few properties: className -> class and a few others that are camelcased
3 replies