jaredhanson / jaredhanson/electrolyte
Provide a container factory rather than an immediate global container
- Dominant language
- JavaScript
- Stars
- 555
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
I've been running into an issue with electrolyte where the fact that it operates as a global container (cached by node once `require`d) makes it problematic to use when you have one electrolyte project using another electrolyte library as a dependency (since node doesn't guarantee that your dependency won't just use a higher level electrolyte in `node_modules`). So I get collisions on component names, which silently override the earlier ones. It also makes testing harder because I cannot create isolated containers for a given test suite.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Start by tracing how the package is required and cached by Node, then determine how a factory could create isolated containers; done means separate projects and test suites can use independent containers without component-name collisions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100