mirror of
https://github.com/vale981/grapher
synced 2025-03-10 12:56:41 -04:00
16 lines
436 B
JavaScript
16 lines
436 B
JavaScript
![]() |
export default class ReducerNode {
|
||
|
constructor(name, body, reducer) {
|
||
|
this.name = name;
|
||
|
this.body = body;
|
||
|
this.reducer = reducer;
|
||
|
|
||
|
// reducer nodes should always be added last.
|
||
|
|
||
|
// store fields that are needed, but not specified are fields
|
||
|
// so when we prepare data for delivery it we can clean-it-up
|
||
|
}
|
||
|
|
||
|
applyFields(fields) {
|
||
|
// fields[this.name] = this.body;
|
||
|
}
|
||
|
}
|