bottender-compose
Advanced tools
Changelog
0.13.0 / 2019-02-19
params
is deprecated. Use props
instead.
In effect
:
effect(
// function has side effects
async context => {
await doSomeSideEffects();
return {
derivedState: {
x: 1,
},
derivedProps: {
y: 2,
},
};
},
// action
async (context, props) => {
console.log(context.state.x); // 1
console.log(props.y); // 2
}
);
In template: Hi, {{ props.name }}
Changelog
0.12.7 / 2019-02-01
B.isMemberJoined();
B.isMemberLeft();
Changelog
0.12.6 / 2018-12-11
Changelog
0.12.4 / 2018-09-06
Changelog
0.12.3 / 2018-09-06
Properties accessors in template is invalid -- expected return a string but got: object
Properties accessors (context.session.user) in template is invalid -- expected return a non-empty string but got: object