mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(cyclones): publish explicit selection to shared context
This commit is contained in:
1 parent
e7707d9a0f
commit
28f3243090
5 files changed
+138
-3
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { createCyclonesLayer } from '../../layers/cyclones/index.js';
|
||||
import * as context from '../../data/contextStore.js';
|
||||
|
||||
/** Wire cyclone selection into the application shared-context owner. */
|
||||
export function createApplicationCyclones(options) {
|
||||
const browserContext = typeof window !== 'undefined' ? { context } : {};
|
||||
return createCyclonesLayer({
|
||||
...browserContext,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user