Prepair: With Recoil atom pass current poi data from MapComponent to poiUpdateModal.js when mouse over

This commit is contained in:
isa
2024-05-26 15:14:16 +02:00
committed by ISA
parent bf4d86406b
commit 77ac959dcf
4 changed files with 117 additions and 10 deletions

View 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
});