Current effect behavior
const fx = createEffect({
handler(params) {
console.log(params)
},
import { | |
createStore, | |
createEvent, | |
is, | |
clearNode, | |
forward, | |
sample, | |
Store, | |
Event, | |
launch |
Current effect behavior
const fx = createEffect({
handler(params) {
console.log(params)
},
{ | |
"type": "root", | |
"children": [ | |
{ | |
"type": "thematicBreak", | |
"position": { | |
"start": { | |
"line": 1, | |
"column": 1, | |
"offset": 0 |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
function iterate(unit) { | |
const source = createEvent() | |
const begin = createEvent() | |
const end = createEvent() | |
const iteration = createEvent() | |
const item = iteration.map(({value}) => value) | |
import {createEvent, createStore, Event, forward, Store} from 'effector' | |
export class Iteration<T> { | |
index: number | |
item: T | |
list: T[] | |
constructor(index: number, item: T, list: T[]) { | |
this.index = index | |
this.item = item | |
this.list = list |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import {createEvent, createStore, createApi, sample, combine} from 'effector' | |
import {useStore} from 'effector-react' | |
const inputStore = createStore('') | |
const todos = createStore([]) | |
const visibilityFilter = createStore(todos => todos) | |
const submit = createEvent('sumbit form') |
//@flow | |
/* eslint-disable no-unused-vars */ | |
import {createStore, createEvent, type Store, type Event} from 'effector' | |
declare export function element<P, R>(tag: (props: P) => R, props: P): R | |
declare export function element( | |
tag: 'span', | |
props: { | |
class?: {[field: string]: string}, | |
content: Store<string>, |
[ | |
"foo", | |
"bar" | |
] |
function e({ | |
node: e, | |
child: t = [], | |
from: n = [], | |
scope: r = {}, | |
meta: o = {}, | |
}) { | |
return {from: n.map(Q), seq: e, next: t.map(Q), meta: o, scope: r} | |
} | |
function t(e) { |
//@flow | |
'use strict' | |
/* eslint-disable no-self-compare,max-len */ | |
//========================================================================= | |
// Data | |
let jg | |
let stack = new Array(0) | |
const hist = new Array(0) | |
const words = {} |