Comments (13)
Maybe in case of nested routers and a solution for <Router pending={Loading}/>
we can avoid repetition of pending...
for sub-routers...
from yrv.
Sounds fair, the same as exact
from top-level routers.
My only concern on inheriting stuff from routers is keeping the context safe, e.g.
<Router exact>
<Route a />
<Route b />
<Router>
<Route c />
</Router>
</Router>
The nested-router here should not inherit the exact
down to its routes or it should?
So, a
and b
are exact routes, but c
should be exact too or not?
from yrv.
I think every Router should inherit from parent but can set its context.
Is it wrong?
from yrv.
Is it wrong?
I'm not sure, but think about this: imagine you don't known that the top-level router is exact, and you mount some routes somewhere else inside its context.
You put some routes that are not exact, but suddendly they behave as exact, because its parent router inherited the exact prop from the top-level router.
Do you think that is completely expected?
IMHO I would not inherit from router to router, only routes should inherit stuff from its parent-router, and nothing else — that makes perfect sense to me.
from yrv.
IMHO I would not inherit from router to router, only routes should inherit stuff from its parent-router, and nothing else — that makes perfect sense to me.
Makes sense. Go with it! :)
from yrv.
In theory I have some code that would work for this issue. I simply cannot get your testing setup to work for me no matter what computer I try it on though, so I'm unsure if I a breaking anything.
from yrv.
@jhechtf please rebase again from the master branch, after that you can make ci
to run all the tests in your computer, or just wait for github actions to complete. Thank you!
from yrv.
@pateketrueke I rebased the commit some time ago (during thanksgiving break), but as I've said I'm unable to run unit tests in the repository so I cannot attempt to make unit tests to see if my fix does what is intended for this ticket.
from yrv.
Really there is no way to run the test suite in your system? I'm intrigued, please share the logs to see what's happening.
from yrv.
Depending on which environment I use,
ERROR Unable to find the browser. "chrome:headless" is not a browser alias or path to an executable file.
Type "testcafe -h" for help.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test:e2e: `cross-env BASE_URL=http://localhost:3000 testcafe ${BROWSER:-chrome:headless} "-a" "npm run dev" "e2e/cases" "--color"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test:e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jhecht/.npm/_logs/2020-12-05T09_03_26_373Z-debug.log
npm ERR! Test failed. See above for more details.
make: *** [Makefile:9: ci] Error 1
is the farthest it goes. otherwise it stops way before that.
from yrv.
So, you don't have Chrome installed? Try another browser instead, e.g. make ci BROWSER=chromium:headless
or make ci BROWSER=firefox
or make ci BROWSER=safari
, etc.
from yrv.
I don't do work on a Linux distribution, so neither of these solutions work for me.
from yrv.
Do you have access to Docker?
from yrv.
Related Issues (20)
- Change the tagline to something more inclusive HOT 4
- on:click Doesn't work with href="" HOT 9
- How do we style Links (or the 'a' elements generated from them)? HOT 1
- Uncaught Error HOT 9
- Route with id param messes up stylesheet. HOT 2
- How to use hash based routes HOT 7
- Problem when use nested router with route path `/` HOT 2
- Support on:click for Link(button) without href HOT 3
- Support for cmd+click open in new window HOT 2
- Open in New Tab only works with Anchor Elements.
- Not working with more than 3 levels of nested routes HOT 3
- Typescript support and warnings on build HOT 11
- [Ops] Auto Publish NPM Package when push to master HOT 5
- Add in TS definitions to bundled artifacts when publishing
- Investigate Typedefs for router context HOT 1
- Jest tests started to fail after `main` package.json property got removed HOT 1
- Conditionals are broken on Routes HOT 3
- Implement option to cancel route change in yrv HOT 2
- Some routes don't render anymore after `disabled` or `condition` change HOT 1
- Standard Version deprecation and next steps HOT 1
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 yrv.