Prepair: With Recoil atom pass current poi data from MapComponent to poiUpdateModal.js when mouse over
This commit is contained in:
7
store/atoms/currentPoiState.js
Normal file
7
store/atoms/currentPoiState.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// store/atoms/currentPoiState.js
|
||||
import { atom } from 'recoil';
|
||||
|
||||
export const currentPoiState = atom({
|
||||
key: 'currentPoiState', // Eindeutiger Key, der dieses Atom identifiziert
|
||||
default: null, // Standardwert ist null oder ein leeres Objekt, je nach Bedarf
|
||||
});
|
||||
Reference in New Issue
Block a user