You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should try to use SSR where possible - I don't love the CLS as the submit form loads, which I think would be avoided with SSR (but may not be possible in that case, not sure).
react-icons can not be used out of the box since they are CommonJS modules, which is not compatible with astro. However, there is a "workaround" for that, to change the astro.config.mjs: vite: { ssr: { noExternal: ["react-icons"], }, },
It works on my local branch.
Currently also react-icons has an open ticket and PR to fix that. So I think we could use them. But we could discuss this tomorrow in the standup.
As discussed in the standup:
For now, we put freely available SVGs of the icons directly into our project and do not use extra libraries. If in the future, we need more features for the icons (adaptation to dark/light mode) we will revisit this. At that point, maybe react-icons has fixed their problem.
Activity
theosanderson commentedon Oct 18, 2023
I think react-icons would be fine for SSR.
theosanderson commentedon Oct 18, 2023
I think we should try to use SSR where possible - I don't love the CLS as the submit form loads, which I think would be avoided with SSR (but may not be possible in that case, not sure).
JonasKellerer commentedon Oct 19, 2023
react-icons can not be used out of the box since they are CommonJS modules, which is not compatible with astro. However, there is a "workaround" for that, to change the astro.config.mjs:
vite: { ssr: { noExternal: ["react-icons"], }, },It works on my local branch.
Currently also react-icons has an open ticket and PR to fix that. So I think we could use them. But we could discuss this tomorrow in the standup.
JonasKellerer commentedon Oct 20, 2023
As discussed in the standup:
For now, we put freely available SVGs of the icons directly into our project and do not use extra libraries. If in the future, we need more features for the icons (adaptation to dark/light mode) we will revisit this. At that point, maybe react-icons has fixed their problem.
theosanderson commentedon Oct 20, 2023
(sorry for sending us down a wrong path, thanks for investigating!)
JonasKellerer commentedon Oct 20, 2023
Closed and derived ticket #399