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

ExtensionStore is no longer a Singleton in Lens since some 6.4.x release #1359

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

stefcameron
Copy link
Contributor

The createInstance() and getInstance() methods had been deprecated in the Lens Extensions API, so they have been eliminated from our code base also. But we're still using "global shared state" Cloud and Sync store instances. It's just that Lens isn't the one creating and holding the instance anymore, we are.

PR Checklist

n/a

- https://github.com/lensapp/lens/blob/master/packages/core/src/extensions/extension-store.ts
- lensapp/lens#6690 ("Make base store non Singleton")
- lensapp/lens#4573 ("Elimination of global shared state")

The `createInstance()` and `getInstance()` methods had been deprecated in the Lens
Extensions API, so they have been eliminated from our code base also. But we're still
using "global shared state" Cloud and Sync store instances. It's just that Lens isn't
the one creating and holding the instance anymore, we are.
@stefcameron stefcameron merged commit 501b000 into master Mar 28, 2023
@stefcameron stefcameron deleted the stores branch March 28, 2023 20:20
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.

1 participant