// StateType = { knownPaths: { [key: string]: string[] }; };
addPath(region, location) {
set((state) => {
if (region in state.knownPaths) {
state.knownPaths[region].push(location);
} else {
state.knownPaths[region] = [location];
}
});
},
// StateType = { knownPaths: { [key: string]: string[] }; };
addPath(region, location) {
set((state) => {
if (region in state.knownPaths) {
state.knownPaths[region].push(location);
} else {
state.knownPaths[region] = [location];
}
});
},