Comments (6)
from location.
This might be related to the issue I've been having in trying to integrate React Location with React Native. Hopeful the fix should solve that for me.
from location.
Don't know if this is related, but when showing the pendingElement
and the request fails or takes longer than the timeout time set in the router, the pendingElement
stays visible. Instead of the errorElement
of the defaultErrorElement
from location.
If instead of throwing you return a promise rejection it works the first time. I cannot get even this to work in the sandbox though.
In my case my bad router is"/bad" and the first time I go to "/bad" it will respond with the error element, if I go to another route and try to go back to "/bad" it will just hang as if in a pending state
from location.
@tannerlinsley I narrowed the issue down to a rejectLoader call and submitted a PR, if I am way off base let me know but this fixed my issues with error elements
from location.
Should be fixed!
from location.
Related Issues (20)
- useSearch bug: renders 'undefined' in between re-renders HOT 3
- Link and useParams typing Issues HOT 4
- Router state status doesn't change on latest version HOT 2
- Suspense error: A component suspended while responding to synchronous input HOT 6
- loaderDeps is not called with validated search params HOT 1
- FullSearchSchema incorrect if routes have conflicting search schemas
- Load called twice on page reload? HOT 8
- Static paths are not preferred if they are alongside a dynamic path HOT 3
- navigate forgets path param
- CLI crash HOT 2
- Can't navigate with Memory History Router HOT 2
- RouteApi routeId issues HOT 5
- Wrong href when throwing redirect in React Strict Mode HOT 4
- Source code for route file getting modified by the CLI HOT 7
- Params flash undefined on specific route progression HOT 2
- Nested layouts: Suggestions <Link to="?" /> returns the wrong "to" string HOT 3
- Cursor "pointer" flashes to default style after navigation HOT 2
- Typescript error, some route paths are reported as invalid HOT 1
- Typescript on Link component "to" prop go wrong when have nested layout folder for File base route
- Does not support React v16.8+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from location.