Closed jansav closed 1 year ago
Exporting already instantiated class
While I really want to do this part. I don't quite see how we can without a major version bump to the extension API.
Exporting already instantiated class
While I really want to do this part. I don't quite see how we can without a major version bump to the extension API.
Lets see. I think we have some ideas, but haven’t tested them about yet.
Note: Added Red flag trigger words to description
Red flag trigger words
On encounter of any of these phrases in codebase, one is likely to be dealing with global shared state.
- .createInstance() and .getInstance()
- static
- export anything-with-state
Hear hear: elimination of shared global state is the current Team Technical Focus (TTF).
Should the checkmarks really be checked for PRs that are closed and not merged?
Closing as the bulk work is now done. Just need to remove as many uses of the legacyGlobal
family of functions as possible now.
🎉
This issue is a way to track progress with elimination of global shared state in OpenLens.
Things to consider
Red flag trigger words
On encounter of any of these phrases in codebase, one is likely to be dealing with global shared state.
Singleton -base-class usages
Registries
Most of the registries can be replaced with reactive solutions relatively easily. Think if this is feasible at the same time.
Stores
Other stuff
Exporting already instantiated class
Global search with RegExp:
export const .* = new
Other stuff