We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
areStatesEqual
test case:
state = {name: 'test', params: {a: 1, b: undefined}}; state2 = {name: 'test', params: {a: 1, c: 2}}; console.log(areStatesEqual(state, state2, false));
expect: false reality: true
state.params['a'] === state2.params['a'] ✅ state.params['b'] === state2.params['b'] ✅ state.params['c'] === state2.params['c'] ❌
bug line:
state1Params.length === state2Params.length && state1Params.every(p => state1.params[p] === state2.params[p])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
areStatesEqual
test case:
expect: false
reality: true
state.params['a'] === state2.params['a'] ✅
state.params['b'] === state2.params['b'] ✅
state.params['c'] === state2.params['c'] ❌
bug line:
The text was updated successfully, but these errors were encountered: