Fast Refresh not working with client component and window.location
Answered
Raymond posted this in #help-forum
RaymondOP
In my client component I'd have something like
const test = window.location
, then the page that uses this component won't have Fast Refresh. Rather, any dev changes will cause the page to fully refresh. Is this expected behavior?Answered by Raymond
Nvm I'm using it incorrectly, it should have href="/" rather than window.location.origin