mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
refactor(cyclones): drop defensive shared-context state and checks
This commit is contained in:
1 parent
5e64e599e1
commit
5bab5ec26d
3 files changed
+10
-32
No files matched your search
@@ -3,9 +3,8 @@ import * as context from '../../data/contextStore.js';
|
||||
|
||||
/** Wire cyclone selection to the application shared context. */
|
||||
export function createApplicationCyclones(options) {
|
||||
const browserContext = typeof window !== 'undefined' ? { context } : {};
|
||||
return createCyclonesLayer({
|
||||
...browserContext,
|
||||
context: typeof window !== 'undefined' ? context : null,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user