full switch to jotai, finishes schema version query fixes

This commit is contained in:
2024-09-05 05:22:29 -06:00
parent b529445851
commit 84cbea8ce1
12 changed files with 148 additions and 91 deletions

View File

@@ -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" } } }),
);

View File

@@ -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,
});