File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export function Board() {
12
12
let { board } = useLoaderData < typeof loader > ( ) ;
13
13
14
14
let itemsById = new Map ( board . items . map ( ( item ) => [ item . id , item ] ) ) ;
15
+
15
16
let pendingItems = usePendingItems ( ) ;
16
17
17
18
// merge pending items and existing items
@@ -116,7 +117,7 @@ function usePendingColumns() {
116
117
// These are the inflight items that are being created or moved, instead of
117
118
// managing state ourselves, we just ask Remix for the state
118
119
function usePendingItems ( ) {
119
- type PendingItem = ReturnType < typeof useFetchers > [ 0 ] & {
120
+ type PendingItem = ReturnType < typeof useFetchers > [ number ] & {
120
121
formData : FormData ;
121
122
} ;
122
123
return useFetchers ( )
Original file line number Diff line number Diff line change 9
9
"start" : " NODE_ENV=production remix-serve ./build/server/index.js" ,
10
10
"migrate" : " npx prisma migrate dev" ,
11
11
"typecheck" : " tsc" ,
12
- "deploy" : " fly deploy"
12
+ "deploy" : " rm -rf build && rm -rf public/build && fly deploy"
13
13
},
14
14
"dependencies" : {
15
15
"@prisma/client" : " ^5.3.1" ,
You can’t perform that action at this time.
0 commit comments