Open michalstruck opened 8 months ago
Create a file in db/hooks where all the query keys will be stored as functions, where the dependencies are its arguments. As in
db/hooks
const keys = { listBarcodes: (inventoryId: number) => ["listBarcodes", inventoryId], };
These will be imported to query functions as well as optimistic updates, preventing query key name mixups
Create a file in
db/hooks
where all the query keys will be stored as functions, where the dependencies are its arguments. As inThese will be imported to query functions as well as optimistic updates, preventing query key name mixups