Comments (1)
There are 3 options to add the loader:
- before:
incubate().loader({ ... }).with(...).create()
- not preferred as there is no way to type the loader.
(alternativeincubate(init, { loader: { ... } }).with(...).create()
) - after:
incubate().with(...).loader({ ... }).create()
- can type the loader, and can add loader along with the incubator. However, do not know what is the use case of adding loader with the incubator. And it makes the logic quite difficult, as now we need to exclude or able to override what's already in the incubator. - on creation:
incubate().with(...).create((g, ctx) => { ctx.setLoader({ ... }) })
- can type the loader. Down side is the loader need to be specified on every creation.
from async-fp.
Related Issues (19)
- An in-range update of semantic-release is breaking the build 🚨 HOT 12
- async array methods HOT 3
- Dependency Dashboard
- extend after get
- AsyncContext: improve AsyncContext type system
- Async Traits HOT 1
- gizmo: support various instantiation strategies HOT 1
- incubate(gizmo) does not check type correctly HOT 1
- allow gizmo.create() to be sync
- infers gizmo function with optional params
- fix codeQL
- gizmo.compose(context) HOT 1
- incubator.create(startFn)
- gizmo: support cleanup
- gizmo: access control
- gizmo: define.InferDeps<typeof gizmo> HOT 1
- Type instantiation is excessively deep and possibly infinite.
- gizmo: extend()
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 async-fp.