react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

fix(components/useGeographies): allow SSR with JSON

Open nicholaschiang opened this issue 2 years ago • 0 comments

This patch updates the useGeographies hook to allow server-side rendering when passing in a static JS object (e.g. from a local JSON file). This hook will still prevent trying to fetch external geography data when rendering server-side.

nicholaschiang avatar Aug 09 '23 23:08 nicholaschiang