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

Context are being shared when called plugin on multiple instances #39

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

rayriffy
Copy link
Owner

  • Because by default options, default context are defining in defaultOptions which shared same pointer with trying to called in plugin.ts, so context are being reused instead of creating a new one
  • Change the behavior to initialize context class when function is being called, instead of defining in static contant
  • Additionally, add example for multi instances

fixes #37

@rayriffy rayriffy merged commit 5e83844 into main Apr 20, 2024
1 check passed
@rayriffy rayriffy deleted the fix/shared-local-context branch June 10, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duration overwritten
1 participant