neilenns / react-access-code-map

Access code map written using React
MIT License
0 stars 0 forks source link

Fix page reloading completely when the refreshToken call completes #96

Closed neilenns closed 1 year ago

neilenns commented 1 year ago

It's very likely because userContext.token changes and that forces the page to redraw. There's gotta be a way to avoid that.

neilenns commented 1 year ago

The original code example did NOT include the userContext.token property in the dependencies. ESLint forced me to add it though. Maybe that's the issue?