MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / focusZonePropsEqual

Function focusZonePropsEqual

packages/core/src/runtime/commit/equality.ts:368–389  ·  view source on GitHub ↗
(a: unknown, b: unknown)

Source from the content-addressed store, hash-verified

366}
367
368function focusZonePropsEqual(a: unknown, b: unknown): boolean {
369 if (a === b) return true;
370 const ao = (a ?? {}) as {
371 id?: unknown;
372 tabIndex?: unknown;
373 navigation?: unknown;
374 columns?: unknown;
375 wrapAround?: unknown;
376 onEnter?: unknown;
377 onExit?: unknown;
378 };
379 const bo = (b ?? {}) as typeof ao;
380 return (
381 ao.id === bo.id &&
382 ao.tabIndex === bo.tabIndex &&
383 ao.navigation === bo.navigation &&
384 ao.columns === bo.columns &&
385 ao.wrapAround === bo.wrapAround &&
386 ao.onEnter === bo.onEnter &&
387 ao.onExit === bo.onExit
388 );
389}
390
391function focusTrapPropsEqual(a: unknown, b: unknown): boolean {
392 if (a === b) return true;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected