You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use powerplug in a docz Playground, where components can only be instanciated without carrying state. I would like to run a couple of actions once the component has mounted. It would generally be nice if powerplug components had simple to use mounting semantics where the same props that are otherwise accessible in render could be used to drive async actions, receive stuff, etc.
My specific problem:
<Playground><Listinitial={['Apples','Oranges','Bananas']}>{({ list, push, pull })=>(// I'd like to call setTimeouts on startup, removing an item on the first,// adding items on the second, can't do it here coz it would cause a loop<Transitionkeys={list}from={{overflow: 'hidden',height: 0}}enter={{height: 30,background: '#28d79f'}}leave={{height: 0,background: '#c23369'}}update={{background: '#28b4d7'}}config={config.molasses}>{list.map(item=>props=><divstyle={props}>{item}</div>)}</Transition>)}</List></Playground>
I'm trying to use powerplug in a docz Playground, where components can only be instanciated without carrying state. I would like to run a couple of actions once the component has mounted. It would generally be nice if powerplug components had simple to use mounting semantics where the same props that are otherwise accessible in render could be used to drive async actions, receive stuff, etc.
My specific problem:
A possible solution:
The text was updated successfully, but these errors were encountered: