Comments (3)
@anastasiagryshchenko
in the screenshot, it looks like the transition has a "relative" value of app.foo
but is trying to transition to app.foo.**
, is this correct?
What other details can you provide? Is this a pure $state.go()
call you're making imperatively? Or from a UISref?
from react-hybrid.
behavior is the same for both $state.go and UISref navigation.
the first transition is trying to resolve future state instead of the specific one and fails, we can observe the module load, and then the next time user tries to navigate to smth (e.g.click on the link with ui-sref) everything works correctly.
from react-hybrid.
This is surprising. Especially the result of targetState.name()
being { url: "/deployments", name: "app.deployments.**", $$state: f }
.
The logic found in name()
should have returned app.deployments.**
:
/** The name of the state this object targets */
name(): string {
return (this._definition && this._definition.name) || <string>this._identifier;
}
Can you provide the following additional info:
Output of:
npm ls @uirouter/angular-hybrid
npm ls @uirouter/core
npm ls @uirouter/angular
npm ls @uirouter/angularjs
What is in targetState._identifier
?
As long as you're stepping through ui-router code, can you step through TargetState
constructor, specifically this line
https://github.com/ui-router/core/blob/e657cfef2a36be136456710974f8b3078d57e697/src/state/targetState.ts#L74
This should be finding the futurestate StateObject from the StateRegistry that matches the glob app.deployments.**
. However, since _definition
is empty, it must not have been found.
from react-hybrid.
Related Issues (20)
- Error: [$injector:unpr] Unknown provider HOT 2
- Nested views not working
- Apollo Client support HOT 2
- ui-view with default content gets wiped out
- npm WARN @uirouter/[email protected] requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself. HOT 1
- Issues with React 16.9.0 HOT 1
- Params not passing from react context
- Is there any plan/way in UI Router to support Angular,AngularJS,React together in a SPA HOT 1
- UIView unable to render with custom parameters HOT 3
- Integrating 3 frameworks
- Migrated to @ui-router from angular-ui-router, not able to route to React HOT 1
- When creating a named child state via react / UIView, name property does not get passed down HOT 3
- Add 0.2.0 example / improve docs
- No coreservices initialization HOT 1
- Update Peer Dependencies HOT 1
- onEnter function arguments must be '$transition$' and '$state$' if used in state definition HOT 2
- Going to react component throws "Unknown provider: DirectiveProvider <- Directive" HOT 1
- Support React v18.1? HOT 5
- Route to state with params doesn't work HOT 2
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 react-hybrid.