react-ioc
react-ioc copied to clipboard
Hierarchical Dependency Injection with new React 16 Context API
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 0.0.0-7f28234f8 to 17.0.0-rc.1. Release notes Sourced from react's releases. 16.13.1 (March 19, 2020) React DOM Fix bug in legacy mode Suspense where effect clean-up functions are not...
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...
Bumps [bl](https://github.com/rvagg/bl) from 1.2.2 to 1.2.3. Commits d69edfd 1.2.3 847473a test all branches 0bd87ec Fix unintialized memory access dc097f3 test newer versions of Node See full diff in compare view...
Hi, with introduced in TS 3.7 `useDefineForClassFields` flag examples from the readme will not work, unless `declare` property modifier is applied, e.g. `@inject dataContext: DataContext;` should be `@inject declare dataContext:...
A minimal reproducible demo: ```js import React, {Fragment, FunctionComponent} from 'react'; import {render} from 'react-dom'; import {provider, inject, toClass, toFactory, useInstance} from 'react-ioc'; class ServiceB { bar(): string { return...
Hi, thank you for a great library, react context is de facto built-in DI and the library utilize the concept very well, it's like something I'd implement myself if `react-ioc`...
I followed the instructions to use React IoC in my simple project with TypeScript 3.4.3, but it's not working. I get the error below in the browser console, and when...
Hi. I have a proposal. There is an example: ``` export class Config { public url = "https://google.com"; } export class SubService { @inject public configModel: ConfigModel; } export class...
I wish I could give this project more stars, because it has saved me a lot of time and made my code much cleaner. Thanks for the awesome library! There's...