bcgov / cas-ggircs

Climate Action Secretariat's Greenhouse Gas Industrial Reporting and Control System
Apache License 2.0
3 stars 4 forks source link

Fix: diff broken after relay 13 upgrade #422

Closed pbastia closed 2 years ago

pbastia commented 2 years ago

Fixing the diffing. The issue was that useRouter was being used in 2 components on different branches of the rendering tree, and ordering of some react hooks.

This is because useRouter uses React's Context API, which is only unique per branch of the render tree