Giter VIP home page Giter VIP logo

Comments (6)

elboman avatar elboman commented on March 29, 2024 1

I just released 0.5.0 under the new org scoped name @uirouter/react.

Feedback and contributions always welcome!

from react.

wallzero avatar wallzero commented on March 29, 2024

I also have a project eagerly awaiting these features. If you'd like some testers, I'll have time in the near future to pull this branch and give it a try.

from react.

elboman avatar elboman commented on March 29, 2024

Hi,
Actually 0.5.0 is pretty much done, I was going to update the docs in the source but I guess we could release the package on npm and work on the docs later on.
Have you tried the branch out yet? Did you find any issue?

from react.

Kukkimonsuta avatar Kukkimonsuta commented on March 29, 2024

I've tried upgrading to core 5.0.0 and example seem to work fine, however tests for UISref are failing

https://github.com/Kukkimonsuta/react/tree/switch-to-uirouter-5

If I disable the empty defaultErrorHandler I get:

    console.error ..\node_modules\@uirouter\core\lib\state\stateService.js:40
      Transition Rejection($id: 9 type: 6, message: The transition errored, detail: TypeError: Cannot read property 'reduce' of undefined)
    console.error ..\node_modules\@uirouter\core\lib\state\stateService.js:42
      TypeError: Cannot read property 'reduce' of undefined
          at ResolveContext.Object.<anonymous>.ResolveContext.resolvePath (D:\Projects\ui-router-react\node_modules\@uirouter\core\src\resolve\resolveCo
ntext.ts:132:46)
          at lazyResolveState (D:\Projects\ui-router-react\node_modules\@uirouter\core\src\hooks\resolve.ts:40:10)
          at invokeCallback (D:\Projects\ui-router-react\node_modules\@uirouter\core\src\transition\transitionHook.ts:93:23)
          at TransitionHook.Object.<anonymous>.TransitionHook.invokeHook (D:\Projects\ui-router-react\node_modules\@uirouter\core\src\transition\transit
ionHook.ts:105:20)
          at D:\Projects\ui-router-react\node_modules\@uirouter\core\src\transition\transitionHook.ts:208:34
          at process._tickCallback (internal/process/next_tick.js:109:7)

from react.

wallzero avatar wallzero commented on March 29, 2024

After some refactoring, it's working well for me! I have not tested <UISref />'s, though. Also, will 0.5.0 be upgraded to use @uirouter/core? I'm curious if issues 44 and 45 are resolved with the lastest. Thanks!

from react.

wallzero avatar wallzero commented on March 29, 2024

I've created a fork and checked in the lib and lib/esm directories. If anyone else wants to try the 0.5.0 branch before it's published, you can replace the following in your settings.json:

"ui-router-react": "git+https://github.com/Schlesiger/react.git#0.5.0"

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.