abstract-state-router
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -411,4 +411,6 @@ 'use strict'; | ||
if (parent) { | ||
const parentDomApi = activeDomApis[parent.name]; | ||
resolve(getDomChild(parentDomApi)); | ||
resolve(getDomChild(activeDomApis[parent.name]).then(childDomApi => { | ||
if (!childDomApi) return Promise.reject(new Error(`getDomChild returned a falsey element, did you forget to add a place for a child state to go?`)) | ||
return childDomApi | ||
})); | ||
} else { | ||
@@ -415,0 +417,0 @@ resolve(rootElement); |
{ | ||
"name": "abstract-state-router", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "Like ui-router, but without all the Angular. The best way to structure a single-page webapp.", | ||
@@ -44,4 +44,4 @@ "main": "bundle.js", | ||
"tape-catch": "1.0.6", | ||
"tape-run": "^8.0.0" | ||
"tape-run": "^9.0.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ **[Changelog](./changelog.md) • [Join the chat on Discord](https://discord.gg/G8FrErC) • [API documentation](#api)** | ||
To find out why you should be using this kind of router, read [Why Your Webapp Needs a State-Based Router](https://joshduff.com/2015-06-why-you-need-a-state-router.md). | ||
To find out why you should be using this kind of router, read [Why Your Webapp Needs a State-Based Router](https://joshduff.com/2015-06-why-you-need-a-state-router.html). | ||
@@ -10,0 +10,0 @@ abstract-state-router is heavily inspired by the [original ui-router](https://github.com/angular-ui/ui-router/wiki). The biggest difference is: you can use abstract-state-router with whatever templating/component library you like. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90495
596