You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(store): preserve the event name case with createActionGroup (#3832)
BREAKING CHANGES:
The event name case is preserved when converting to the action name by using the `createActionGroup` function.
BEFORE:
All letters of the event name will be lowercase, except for the initial letters of words starting from the second word, which will be uppercase.
```ts
const authApiActions = createActionGroup({
source: 'Auth API',
events: {
'LogIn Success': emptyProps(),
'login failure': emptyProps(),
'Logout Success': emptyProps(),
logoutFailure: emptyProps(),
},
});
// generated actions:
const {
loginSuccess,
loginFailure,
logoutSuccess,
logoutfailure,
} = authApiActions;
```
AFTER:
The initial letter of the first word of the event name will be lowercase, and the initial letters of the other words will be uppercase. The case of other letters in the event name will remain the same.
```ts
const {
logInSuccess,
loginFailure,
logoutSuccess,
logoutFailure,
} = authApiActions;
```
0 commit comments