anhvu0911
Loading CSS issue (FOUC) on optional parameter
From the SolidStart template (https://start.solidjs.com/getting-started/project-setup), I add some style in root.css. For components, I use module CSS.
9 replies
Loading CSS issue (FOUC) on optional parameter
I'm using the default option.
https://start.solidjs.com/core-concepts/css-and-styling
9 replies
Understanding Suspense in SolidStart SSR
For 2),
Looking at the source code of
refetchRouteData
https://github.com/solidjs/solid-start/blob/8cfe543c18c2ee2aed30478da9893c37ec8be7f7/packages/start/data/createRouteData.tsx#L139
It uses startTransition
under the hood, so it will not trigger callback of suspense.
If I modify the code to not use startTransition
, then the fallback is displayed as expected
It seems that the code is introduced in https://github.com/solidjs/solid-start/issues/304
The question is how can we get the pending state, while not triggering Suspense?3 replies
How to deploy unplugin-icons on production?
I tried with the dockerfile in https://stackoverflow.com/questions/74222441/how-to-yarn-build-on-dockerfile, where it
yarn build
as dev first, then remove the node_modules and reinstall as production. It is successfully deployed to the server (I'm using Gitlab CI/CD), but still got the same error on server.2 replies
Reactivity with normal functions
Finally, I get
createMemo
vs normal function
From the article, section 4 - use less computations
https://dev.to/ryansolid/thinking-granular-how-is-solidjs-so-performant-4g37#4-use-less-computations
For simple calculation, use createMemo()
will always be called when it is first declared. Declare with a normal function is just a declaration, it will not be triggered until it is used.
For costly calculation, a normal function would be called every time it is used, while createMemo()
caches the result, so if the signal
E.g. https://playground.solidjs.com/anonymous/423f5796-c163-4545-9a8b-b1feac43e972 assume double() is a costly operation. In JSX, we use the value twice, but only one console.log for createMemo
is printed5 replies
Using CSR mode, got asset error when there is a new build
Thanks, I tried adding these and it worked
Ref: https://stackoverflow.com/questions/34851243/how-to-make-index-html-not-to-cache-when-the-site-contents-are-changes-in-angula
Now, let's see what those values mean.
7 replies
Questions on the `owner` of using children() helper inside a context
Got it! I tried wrapping inside a component and it works
https://playground.solidjs.com/anonymous/d4218a57-cd00-438d-a2eb-5641c6a52ae2
Thanks for the advice
4 replies