We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b6619 commit 65f82ceCopy full SHA for 65f82ce
packages/shared/src/index.ts
@@ -143,7 +143,7 @@ export const toHandlerKey = cacheStringFunction(
143
144
// compare whether a value has changed, accounting for NaN.
145
export const hasChanged = (value: any, oldValue: any): boolean =>
146
- value !== oldValue && (value === value || oldValue === oldValue)
+ !Object.is(value, oldValue)
147
148
export const invokeArrayFns = (fns: Function[], arg?: any) => {
149
for (let i = 0; i < fns.length; i++) {
0 commit comments