-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
Ah, I see this doesn't support SSR/SSG. A bit weird IMO :) I think there is an opportunity to fetch everything and render HTML inline already on the first render :) Okay, so it seems that adding all the icons of SVG into one file and then use |
Beta Was this translation helpful? Give feedback.
-
|
Hey @RIP21 You could use an SVG wrapper for the icons and set the width/height so it won't resize when loaded. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @cgcab |
Beta Was this translation helpful? Give feedback.
-
|
I just set up a codesandbox that updates the component state, and there's no flickering. I migrated the source code to be a functional component instead of a class in 4.1.0, but it has several tests that didn't fail afterward, including state updates and re-renders. |
Beta Was this translation helpful? Give feedback.

Ah, I see this doesn't support SSR/SSG. A bit weird IMO :) I think there is an opportunity to fetch everything and render HTML inline already on the first render :)
Okay, so it seems that adding all the icons of SVG into one file and then use
usewithhrefis really a way to go :) As it allows for styling etc. and makes this library effectively irrelevant I can add this svg file into thelinkor so and preload it quickly.