Memoize result from useMatch() between renders by jonkoops · Pull Request #8431 · remix-run/react-router
Closes #7059