-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: If the same action was included in multiple `ViewStateActionsCon…
…fig` configs, only last action config would be used. (#4)
- Loading branch information
1 parent
f4eb9f2
commit a00330c
Showing
10 changed files
with
547 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
projects/ngx-view-state/src/lib/view-state/store/view-state.actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { createActionGroup, props } from '@ngrx/store'; | ||
|
||
export const ViewStateActions = createActionGroup({ | ||
source: 'ViewState', | ||
events: { | ||
startLoading: props<{ actionType: string }>(), | ||
reset: props<{ actionType: string }>(), | ||
error: props<{ actionType: string; error?: unknown }>(), | ||
}, | ||
source: 'ViewState', | ||
events: { | ||
startLoading: props<{ actionType: string }>(), | ||
reset: props<{ actionType: string }>(), | ||
resetMany: props<{ actionTypes: string[] }>(), | ||
error: props<{ actionType: string; error?: unknown }>(), | ||
errorMany: props<{ actionTypes: { actionType: string, error?: unknown }[] }>() | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.