Moved all Recoil atoms to a new 'atoms' directory and selectors to a 'selectors' directory to clarify the project structure and improve maintainability. This change separates concerns by clearly distinguishing between simple state (atoms) and derived state (selectors), facilitating better understanding and scalability of the application's state management.
8 lines
216 B
JavaScript
8 lines
216 B
JavaScript
// store/zoomTriggerState.js
|
|
import { atom } from "recoil";
|
|
|
|
export const zoomTriggerState = atom({
|
|
key: "zoomTriggerState",
|
|
default: 0, // Dies kann eine einfache Zählvariable sein, die inkrementiert wird.
|
|
});
|