Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache currently used is shared accross object instances #106

Open
loopingz opened this issue Sep 25, 2021 · 1 comment
Open

Cache currently used is shared accross object instances #106

loopingz opened this issue Sep 25, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@loopingz
Copy link
Owner

Describe the bug
If a @Cache is used in front of the Context getCurrentUser the result will be stored for every instances of Context

Expected behavior
The Cache should not be shared between instance unless specified

Additional context
The bug comes probably from ts-method-cache but it does not seem to be maintained.
A user of WeakMap is probably a better implementation

@loopingz loopingz added the bug Something isn't working label Sep 25, 2021
@loopingz
Copy link
Owner Author

@abalam666 abalam666 self-assigned this Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants