Comments (5)
Patch for a missing test:
diff --git a/test/specs/server.specs.js b/test/specs/server.specs.js
index 6a7c77e..3ab29a5 100644
--- a/test/specs/server.specs.js
+++ b/test/specs/server.specs.js
@@ -34,7 +34,12 @@ describe('Server-side specs', function() {
it('can create sub route context', function() {
expect(route.create).to.not.throwException()
})
-
+
+ it('can terminate sub route context', function() {
+ var subRoute = route.create()
+ expect(subRoute.stop).to.not.throwException()
+ })
+
it('can define route handlers', function() {
expect(route).withArgs(function(){}).to.not.throwException()
expect(route).withArgs('/fruit', function(){}).to.not.throwException()
from route.
Is there a workaround? This is a very important feature!
from route.
I've used riot.route.stop.bind(subRoute)
to some success.
from route.
I've used riot.route.stop.bind(subRoute) to some success.
👍
Preparing a PR.
from route.
I'm conceding now that subrouting is FUBAR 😩
Perhaps apps should stick to central routing and trigger custom signals to achieve multi-dispatch behaviour.
from route.
Related Issues (20)
- Do TypeScript definitions exist for route? HOT 1
- Router fails entirely when not in index of a folder HOT 1
- When trying to put a component inside a route it is not mounted. HOT 4
- Import route / router fails on Edge after rollup bundler HOT 4
- Using router with rollup causes error HOT 1
- Infinite loop when child is directly nested in route HOT 1
- Child component onUpdated not firing
- Exclude path from routing HOT 2
- Route function rather than Update HOT 1
- How to catch "404 Not Found" routes properly? HOT 3
- "Maximum call stack size exceeded" error and a component inside route component are mounted multiple times
- Bug in support of 'target' attribute HOT 3
- Disable setting history. HOT 3
- Can't get routes with parameters to work HOT 1
- use decodeURI() on route HOT 5
- setBase is working? HOT 1
- Download a file HOT 2
- Error when compiling webpack HOT 3
- Updating component on route change HOT 3
- Router captures all links regardless of base path HOT 3
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 route.