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.
isEqual
1 parent b220c84 commit ee08815Copy full SHA for ee08815
1 file changed
src/utils.ts
@@ -252,10 +252,14 @@ export const useForceReRender = () => {
252
/**
253
* Fast deep equality comparison function
254
* Based on fast-deep-equal library
255
+ * Note: Functions are treated as equal without deep comparison
256
*/
257
export function isEqual(a: any, b: any): boolean {
258
if (a === b) return true;
259
260
+ // Ignore function checks - return them as equal
261
+ if (typeof a === 'function' && typeof b === 'function') return true;
262
+
263
if (a && b && typeof a === 'object' && typeof b === 'object') {
264
if (a.constructor !== b.constructor) return false;
265
0 commit comments