mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: data passing
This commit is contained in:
1 parent
2286a398cf
commit
423ffdb24f
4 files changed
+20
-26
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user