Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Allow to clean all dependencies cache except defined ones #121

Closed
javierbrea opened this issue Jul 2, 2020 · 0 comments · Fixed by #122
Closed

Allow to clean all dependencies cache except defined ones #121

javierbrea opened this issue Jul 2, 2020 · 0 comments · Fixed by #122
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@javierbrea
Copy link
Member

Sometimes you need to clean all dependencies of a Selector, except some specific ones. (A usual use case is when a dependency of the selector is an origin requesting user data, that could be reused by a lot of other Selectors. Then, you don't wan't to clean that cache, because it will recalculate lots of selectors unnecessarily).

To achieve this, the cleanDependenciesCache method could accept an options argument. That argument could be an object containing an except property, that should be an array containing those origins or selectors that you don't want to be cleaned.

selector.cleanDependenciesCache({
   except: [origin]
})
@javierbrea javierbrea added the enhancement New feature or request label Jul 2, 2020
@javierbrea javierbrea added this to To do in Data Provider via automation Jul 2, 2020
@javierbrea javierbrea self-assigned this Jul 2, 2020
@javierbrea javierbrea added this to the v2.6.0 milestone Jul 2, 2020
Data Provider automation moved this from To do to Done Jul 2, 2020
javierbrea pushed a commit that referenced this issue May 26, 2022
chore(deps): update dependency sinon to v11.1.2
javierbrea pushed a commit that referenced this issue May 26, 2022
chore(deps): update dependency eslint to v7.19.0
javierbrea pushed a commit that referenced this issue May 26, 2022
chore(deps): update dependency lint-staged to v10.5.4
javierbrea pushed a commit that referenced this issue May 26, 2022
chore(deps): update dependency @babel/preset-env to v7.16.8
javierbrea pushed a commit that referenced this issue May 26, 2022
…-2.x

chore(deps): update dependency react-app-rewired to v2.1.8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Data Provider
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant