How to use the @reactorx/core.shallowEqual function in @reactorx/core

To help you get started, we’ve selected a few @reactorx/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github querycap / reactorx / @reactorx / router / src / Route.tsx View on Github external
function isMatchEqual(match: IMatch, nextMatch: IMatch): boolean {
  if (match.url !== nextMatch.url) {
    return false;
  }
  if (match.path !== nextMatch.path) {
    return false;
  }
  if (match.isExact !== nextMatch.isExact) {
    return false;
  }
  return shallowEqual(match.params, nextMatch.params);
}