Skip to content

Commit 79a6cb9

Browse files
fix: add missing optimistic update methods to PromptsContext default value
1 parent a9e105a commit 79a6cb9

11 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/PromptsContext.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const PromptsContext = createContext<PromptsContextValue>({
2121
error: null,
2222
refresh: async () => {},
2323
addOptimistic: () => {},
24+
updateOptimistic: () => {},
25+
removeOptimistic: () => {},
2426
});
2527

2628
export function PromptsProvider({ children }: { children: React.ReactNode }) {

screenshots/OCR.png

-254 KB
Loading

screenshots/console1.png

-524 KB
Binary file not shown.

screenshots/desktop1.png

-34.7 KB
Loading

screenshots/desktop2.png

-64.9 KB
Loading

screenshots/desktop3.png

-81.8 KB
Loading

screenshots/mobile1.png

-119 KB
Loading

screenshots/mobile2.png

555 Bytes
Loading

screenshots/postgresSchema.png

9.34 KB
Loading

screenshots/sql1.png

-124 KB
Binary file not shown.

0 commit comments

Comments
 (0)