Merge branch 'v1.0.8.1' into fix/ohne-externe-babel
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
//redux/slices/readPoiMarkersStoreSlice.js
|
||||
import { atom } from 'recoil';
|
||||
import { atom } from "recoil";
|
||||
|
||||
export const readPoiMarkersStore = atom({
|
||||
key: 'readPoiMarkersStore',
|
||||
default: [],
|
||||
});
|
||||
const storeKey = "readPoiMarkersStore";
|
||||
|
||||
// Verhindert doppelte Registrierung bei HMR
|
||||
export const readPoiMarkersStore =
|
||||
globalThis.readPoiMarkersStore ||
|
||||
atom({
|
||||
key: storeKey,
|
||||
default: [],
|
||||
});
|
||||
|
||||
// Speichert das Atom im globalen Namespace (nur in Dev)
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
globalThis.readPoiMarkersStore = readPoiMarkersStore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user