Comments (10)
This was the key:
react-hybrid/src/angularjs/ReactUIViewAdapterComponent.tsx
Lines 76 to 86 in f61e241
It was re-rendering the react UIView after the angular adapter had been destroyed.
from react-hybrid.
That's interesting - because we have React 16 running fine with react-hybrid?
Although there are some unmounting errors, will provide when I come across them again.
from react-hybrid.
I'd like to see those errors.
Here's a stackblitz set up with @uirouter/react-hybrid
which shows at least one of the issues I've run across: https://stackblitz.com/edit/ui-router-react-hybrid-respce?file=index.js
from react-hybrid.
I've also added the trivial example to this repo and wired it as an e2e test (yarn test:downstream
-- requires yalc installed globally)
from react-hybrid.
Loading #!/angular
from react-hybrid.
going from #!/angular/react
to #!/angular
from react-hybrid.
#12 (comment) is the error that I encountered
I'm wondering if React is asking @ui-router/react-hybrid
to do https://reactjs.org/docs/react-dom.html#unmountcomponentatnode on exit?
from react-hybrid.
Interesting - the ref
callback fires again when unMountComponentAtNode is called.
from react-hybrid.
Interesting - the ref callback fires again when unMountComponentAtNode is called.
is that a problem though? It gets called with null
right?
from react-hybrid.
Nope, it's not a problem, and yes it gets called with null:
https://github.com/facebook/react/blob/94518b068bf52196abea0c83f4c9926bfe2065c6/packages/react-reconciler/src/ReactFiberCommitWork.js#L136
Seems to be part of React Fiber.
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
- Error: Could not resolve '[object Object]' from state X 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 4
- 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.