-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
distinctState
filter with warning message. Bump version to
beta5.
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,6 +310,13 @@ export function isHistory (history) { | |
} | ||
// /isHistory | ||
|
||
// distinctState helper | ||
export function distinctState () { | ||
console.warning('distinctState is deprecated in beta4 and newer. The distinctState behavior is now default, which means only actions resulting in a new state are recorded. See https://github.com/omnidan/redux-undo#filtering-actions for more details.') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pl12133
Author
Collaborator
|
||
return () => true | ||
} | ||
// /distinctState | ||
|
||
// includeAction helper | ||
export function includeAction (rawActions) { | ||
const actions = parseActions(rawActions) | ||
|
getting
TypeError: console.warning is not a function
should this be
console.warn()
?