File tree Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Expand file tree Collapse file tree 4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ export default function Hook() {
22
22
hasErrored,
23
23
} = useAction ( deleteUser , {
24
24
onSuccess ( args ) {
25
- console . log ( "HELLO FROM ONSUCCESS " , args ) ;
25
+ console . log ( "onSuccess callback: " , args ) ;
26
26
} ,
27
27
onError ( args ) {
28
- console . log ( "OH NO FROM ONERROR " , args ) ;
28
+ console . log ( "onError callback: " , args ) ;
29
29
} ,
30
30
onNavigation ( args ) {
31
- console . log ( "OH NO FROM ONNAVIGATION " , args ) ;
31
+ console . log ( "onNavigation callback: " , args ) ;
32
32
} ,
33
33
onSettled ( args ) {
34
- console . log ( "HELLO FROM ONSETTLED " , args ) ;
34
+ console . log ( "onSettled callback: " , args ) ;
35
35
} ,
36
36
onExecute ( args ) {
37
- console . log ( "HELLO FROM ONEXECUTE " , args ) ;
37
+ console . log ( "onExecute callback: " , args ) ;
38
38
} ,
39
39
} ) ;
40
40
Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ export default function Navigation() {
21
21
hasErrored,
22
22
} = useAction ( testNavigate , {
23
23
onSuccess ( args ) {
24
- console . log ( "HELLO FROM ONSUCCESS " , args ) ;
24
+ console . log ( "onSuccess callback: " , args ) ;
25
25
} ,
26
26
onError ( args ) {
27
- console . log ( "OH NO FROM ONERROR " , args ) ;
27
+ console . log ( "onError callback: " , args ) ;
28
28
} ,
29
29
onNavigation ( args ) {
30
- console . log ( "HELLO FROM ONNAVIGATION " , args ) ;
30
+ console . log ( "onNavigation callback: " , args ) ;
31
31
} ,
32
32
onSettled ( args ) {
33
- console . log ( "HELLO FROM ONSETTLED " , args ) ;
33
+ console . log ( "onSettled callback: " , args ) ;
34
34
} ,
35
35
onExecute ( args ) {
36
- console . log ( "HELLO FROM ONEXECUTE " , args ) ;
36
+ console . log ( "onExecute callback: " , args ) ;
37
37
} ,
38
38
} ) ;
39
39
Original file line number Diff line number Diff line change @@ -18,19 +18,19 @@ const AddTodoForm = ({ todos }: Props) => {
18
18
todos : [ ...state . todos , newTodo ] ,
19
19
} ) ,
20
20
onSuccess ( args ) {
21
- console . log ( "HELLO FROM ONSUCCESS " , args ) ;
21
+ console . log ( "onSuccess callback: " , args ) ;
22
22
} ,
23
23
onError ( args ) {
24
- console . log ( "OH NO FROM ONERROR " , args ) ;
24
+ console . log ( "onError callback: " , args ) ;
25
25
} ,
26
26
onNavigation ( args ) {
27
- console . log ( "OH NO FROM ONNAVIGATION " , args ) ;
27
+ console . log ( "onNavigation callback: " , args ) ;
28
28
} ,
29
29
onSettled ( args ) {
30
- console . log ( "HELLO FROM ONSETTLED " , args ) ;
30
+ console . log ( "onSettled callback: " , args ) ;
31
31
} ,
32
32
onExecute ( args ) {
33
- console . log ( "HELLO FROM ONEXECUTE " , args ) ;
33
+ console . log ( "onExecute callback: " , args ) ;
34
34
} ,
35
35
} ) ;
36
36
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const authAction = action
57
57
. use ( async ( { next } ) => {
58
58
const userId = crypto . randomUUID ( ) ;
59
59
60
- console . log ( "HELLO FROM FIRST AUTH ACTION MIDDLEWARE, USER ID:" , userId ) ;
60
+ console . log ( "FIRST AUTH ACTION MIDDLEWARE, USER ID:" , userId ) ;
61
61
62
62
return next ( {
63
63
ctx : {
@@ -72,7 +72,7 @@ export const authAction = action
72
72
73
73
const sessionId = await getSessionId ( ) ;
74
74
75
- console . log ( "HELLO FROM SECOND AUTH ACTION MIDDLEWARE, SESSION ID:" , sessionId ) ;
75
+ console . log ( "SECOND AUTH ACTION MIDDLEWARE, SESSION ID:" , sessionId ) ;
76
76
77
77
return next ( {
78
78
ctx : {
You can’t perform that action at this time.
0 commit comments