f06fea699f868e2b12d94c171138145c9e616cb9
react-simple-maps types declare path as always non-null, but it is undefined during the initial render before the MapProvider context has fully initialised. Guard with an early return after all hooks have been called, casting through unknown to reflect the true runtime type without triggering the @typescript-eslint/no-unnecessary-condition rule.
Description
No description provided
Languages
Python
72.9%
TypeScript
19.4%
Markdown
4.2%
Roff
1.5%
Shell
1.2%
Other
0.8%