@@ -256,6 +256,8 @@ export function actionBuilder<
256
256
bindArgsClientInputs : ( bindArgsSchemas . length ? clientInputs . slice ( 0 , - 1 ) : [ ] ) as InferInArray < BAS > ,
257
257
parsedInput : parsedInputDatas . at ( - 1 ) as S extends Schema ? Infer < S > : undefined ,
258
258
bindArgsParsedInputs : parsedInputDatas . slice ( 0 , - 1 ) as InferArray < BAS > ,
259
+ hasRedirected : isRedirectError ( frameworkError ) ,
260
+ hasNotFound : isNotFoundError ( frameworkError ) ,
259
261
} )
260
262
) ;
261
263
@@ -264,6 +266,8 @@ export function actionBuilder<
264
266
clientInput : clientInputs . at ( - 1 ) as S extends Schema ? InferIn < S > : undefined ,
265
267
bindArgsClientInputs : ( bindArgsSchemas . length ? clientInputs . slice ( 0 , - 1 ) : [ ] ) as InferInArray < BAS > ,
266
268
result : { } ,
269
+ hasRedirected : isRedirectError ( frameworkError ) ,
270
+ hasNotFound : isNotFoundError ( frameworkError ) ,
267
271
} )
268
272
) ;
269
273
@@ -296,6 +300,8 @@ export function actionBuilder<
296
300
bindArgsClientInputs : ( bindArgsSchemas . length ? clientInputs . slice ( 0 , - 1 ) : [ ] ) as InferInArray < BAS > ,
297
301
parsedInput : parsedInputDatas . at ( - 1 ) as S extends Schema ? Infer < S > : undefined ,
298
302
bindArgsParsedInputs : parsedInputDatas . slice ( 0 , - 1 ) as InferArray < BAS > ,
303
+ hasRedirected : false ,
304
+ hasNotFound : false ,
299
305
} )
300
306
) ;
301
307
} else {
@@ -314,6 +320,8 @@ export function actionBuilder<
314
320
clientInput : clientInputs . at ( - 1 ) as S extends Schema ? InferIn < S > : undefined ,
315
321
bindArgsClientInputs : ( bindArgsSchemas . length ? clientInputs . slice ( 0 , - 1 ) : [ ] ) as InferInArray < BAS > ,
316
322
result : actionResult ,
323
+ hasRedirected : false ,
324
+ hasNotFound : false ,
317
325
} )
318
326
) ;
319
327
0 commit comments