11 lines
283 B
TypeScript
11 lines
283 B
TypeScript
import { atom } from "recoil";
|
|
|
|
export enum RecoilActions {
|
|
CURR_PAGE_PATH = "CURR_PAGE_PATH",
|
|
}
|
|
|
|
export const currPagePath = atom({
|
|
key: RecoilActions.CURR_PAGE_PATH, // unique ID (with respect to other atoms/selectors)
|
|
default: "/s", // default value (aka initial value)
|
|
});
|