reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.46k stars 1.18k forks source link

[HOS-313] state.js: when a routing error occurs, delete it #4410

Closed masenf closed 1 week ago

masenf commented 1 week ago

In some cases, a routing failure can cause the failure to be cached. When the router has a cached failure, pushing such a route will never call routeChangeComplete, and thus on_load event will never be fired for that route.

Purposely clearing the error from the router allows the page to properly load on subsequent attempts without refreshing the app.

linear[bot] commented 1 week ago

HOS-313 Clicking Links too fast breaks next/router on_load functionality