Comments (3)
This will be a feature in the new modding API 70bdc65 which also includes other ways to augment dependency resolution (even completely overwriting Flamework's)
from core.
Sorry for the way too late response.
I'll have a look at the modding API and check what can be done with it, based on your second reply it seems to be what I was looking for, I'll let you know, thanks!
As to why I didn't use a controller/service, the reason is, I did use it, but it is not as great/simple as just throwing it into the container and just have it whenever I request one. The option I have right now is to create a wrapper as a controller/service for every external dependency I might want to use, it isn't a horrible option, it just isn't as great
from core.
Currently, Flamework has an in-beta modding system (modding-v2 branch on relevant repositories, modding release on relevant npm packages) which allows you to specify custom decorators on classes which can then be resolved as singletons. Is this the behavior you desire, or do you specifically need to link an ID to a specific object for dependency injection?
Also, is there a reason you don't want to use a Service/Controller here?
from core.
Related Issues (20)
- Type guard generation should support index signatures HOT 1
- Type guard generation fails on non literal enums HOT 2
- Automatically determine proper loadOrder for singletons
- onInit does not catch errors in promises to abort ignition
- Generic singletons
- Pass additional parameters to subcomponents HOT 1
- Better addPaths glob support
- Parameter order obfuscation
- `Dependency` macro warnings
- Components excessively type check with streaming enabled
- Ability to wait for a component to exist on an instance
- Better runtime guards HOT 3
- Option to not generate client-side typechecking for remote events HOT 8
- "delete" keyword on Component attributes does not remove the attribute HOT 1
- offer @Decorator usage for events HOT 2
- Transformer option for automatic debug profiling HOT 2
- running npx rbxtsc -w results in a runInitalCompile error HOT 1
- Network batching HOT 2
- Flamework macros not working inside decorators HOT 1
- Allow us to configure obsfucation separately for networking and singletons/components HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.