Reflex
Reflex copied to clipboard
proposed api
Pull Request Template
Description
This is starting example of implementing a factory in Reflex. most DI framework provide some way to create new objects on the fly without exposing the container. this is done to ensure all instantiation is done through the framework to avoid issues with non-initialized injections. i'm providing a suggestion on how this can be implemented in this framework
Fixes # (issue)
Type of change
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
How Has This Been Tested?
No test, simply a proposition
Checklist:
- [ ] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [x] I have checked my code and corrected any misspellings
- [ ] I have checked that Reflex.GettingStarted still runs nicely