feat: data passing

This commit is contained in:
TrèsAbhi committed 2024-07-10 12:55:19 -05:00
1 parent 2286a398cf
commit 423ffdb24f
4 files changed
+20 -26

No files matched your search

+1 -2
View File
@@ -50,8 +50,7 @@ export interface Duel {
}
export const { Provider, use, useMutation, useStore } = createNextSafeStore(
async ({ pathName }) => {
const id = Number(pathName.split('/')[3]);
async (id: number) => {
const awaitedTankDefinitions = await tankDefinitions;
const awaitedProvisionDefinitions = await provisionDefinitions;
const tank = awaitedTankDefinitions[id];