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
We are adopting gatsbyjs as our framework to generate static sites and it will be a goal if we could use this project because:
it will help maintain a consistent experience through sites
it will be easier and faster develop new sites
Curren limitations:
The only restriction to make a project compatible with server-side render with gatsbyjs is never access the Web APIs (DOM, Window, Storage, etc) outside of componentDidMount or useEffect
Currently only src/components/Atlas/Atlas.tsx isn't compatible with SSR (because a dependency). To avoid a compilation error we must be able to import each component individually.
Changes required
Avoid index import
- import { Locale } from '../..'+ import { Locale } from '../LanguageIcon/LanguageIcon.tsx'
Motivation:
We are adopting
gatsbyjs
as our framework to generate static sites and it will be a goal if we could use this project because:Curren limitations:
The only restriction to make a project compatible with server-side render with
gatsbyjs
is never access the Web APIs (DOM, Window, Storage, etc) outside ofcomponentDidMount
oruseEffect
Currently only
src/components/Atlas/Atlas.tsx
isn't compatible with SSR (because a dependency). To avoid a compilation error we must be able to import each component individually.Changes required
Others improvements:
componentWillMount
: is deprecated and it will be removed in next major moreLocale
definition outsideLanguageIcon
react-tile-map
insideAtlas.tsx
The text was updated successfully, but these errors were encountered: