full switch to jotai, finishes schema version query fixes
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { TTCQueryParser } from "@/lib/ttcQuery/TTCQueryParser";
|
||||
import { atom } from "recoil";
|
||||
import { atom } from "jotai";
|
||||
// import { atom } from "recoil";
|
||||
|
||||
export const PublicationAtom = atom({
|
||||
key: "publication",
|
||||
default: new TTCQueryParser({
|
||||
path: { to: { dice: "2d6" } },
|
||||
}),
|
||||
});
|
||||
// export const PublicationAtom = atom({
|
||||
// key: "publication",
|
||||
// default: new TTCQueryParser({
|
||||
// path: { to: { dice: "2d6" } },
|
||||
// }),
|
||||
// });
|
||||
|
||||
export const PublicationAtom = atom(
|
||||
new TTCQueryParser({ path: { to: { dice: "2d6" } } }),
|
||||
);
|
||||
|
@@ -1,5 +1,6 @@
|
||||
// import { atom } from "recoil";
|
||||
|
||||
import { Schema } from "@/types";
|
||||
import { atom } from "jotai";
|
||||
|
||||
// export const SchemaEditAtom = atom<Schema>({
|
||||
@@ -12,4 +13,5 @@ export const SchemaEditAtom = atom<Schema>({
|
||||
id: "",
|
||||
types: {},
|
||||
fields: {},
|
||||
version: 0,
|
||||
});
|
||||
|
Reference in New Issue
Block a user