-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for actionSanitiser and stateSanitiser in @ngrx/store-devtools #544
Conversation
@roopkt please fix merge conflicts and we'll land this PR. |
@roopkt conflicts still remain. See the details from the failed tests |
@brandonroberts I am still working on the merge. I have question when are we planing to review #524 pull request. |
Hey @brandonroberts |
options.actionSanitizer = sanitizer; | ||
expect(options.actionSanitizer).toEqual(sanitizer); | ||
}); | ||
it('can be initialized with stateSanitizer', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a line in between these tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
function stateSanitizer(state: any, index: number): any { | ||
return state; | ||
} | ||
options.actionSanitizer = stateSanitizer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be stateSanitizer
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
function myActionSanitizer() { | ||
return { type: 'sanitizer' }; | ||
} | ||
function myStateSanitizer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a line in between these functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
Thanks for doing (and merging) this. Are you planning on a patch release anytime soon with this? |
This is the fix to pass state and action sanitizer to redux dev tool extensions for #494.