Rename loadStore.js to readPoiMarkersStore.js

This commit is contained in:
ISA
2024-05-03 13:58:02 +02:00
parent 39e5e1cb5a
commit 0448d1bc56
5 changed files with 11 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
// store/loadDataStore.js
// store/readPoiMarkersStore.js
import { atom } from "recoil";
export const loadDataStore = atom({
key: "loadDataStore",
export const readPoiMarkersStore = atom({
key: "readPoiMarkersStore",
default: async () => {
const response = await fetch("/api/readLocations");
const data = await response.json();