Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed May 5, 2024
1 parent e70753f commit 7833b6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions islands/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ const LeafletContext = createContext<typeof Leaflet | null>(null);
// LeafletProvider component manages Leaflet loading and context
function LeafletProvider(props: { children: ComponentChildren }) {
if (!IS_BROWSER) {
// NOTE: what is the point of returning this component
// return <p>Leaflet must be loaded on the client. No children will render</p>;
return;
// the server called this?
return <p hidden />;
}
const [value, setValue] = useState<typeof Leaflet | null>(null);
return (
Expand Down

0 comments on commit 7833b6b

Please sign in to comment.