Code Monkey home page Code Monkey logo

ng-cache-route-reuse's People

Contributors

dependabot[bot] avatar framasev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ng-cache-route-reuse's Issues

Cannot reattach ActivatedRouteSnapshot created from a different route

It seems like when i'm trying to use this package for reuse strategy it fails in cases when child routes are there for same kind of route and need to update the strategy. It's a similar to below mentioned issue.

angular/angular#13869

Suppose i went to :--

http://localhost:4200/task/list it works fine first time.
And then i want to go to a link suppose :-- http://localhost:4200/task/details and from there if i want to go to a child link of list :-- http://localhost:4200/task/list/edit/34
it throw error:--

core.js:4196 ERROR Error: Uncaught (in promise): Error: Cannot reattach ActivatedRouteSnapshot created from a different route
Error: Cannot reattach ActivatedRouteSnapshot created from a different route

Would you please add a field to control peer route to cancel store

if the route like this:

const routes: Routes = [
  { path: 'list', component: ListComponent, data: { reuse: true, rank: 10 } },
  { path: 'list2', component: List2Component, data: { reuse: true, rank: 10 } },
  { path: 'detail', component: DetailComponent, data: { reuse: false, rank: 5 }  },
];

so we can use "rank" to control store.
from list or list2 to detail then back to list (or list2), list (or list2) will store, but from list to list2 then go back to list, we will get a initial list

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.