nudoru / s00-template

MIT License
0 stars 0 forks source link

Rendering children as fn and skip update error #17

Open nudoru opened 5 years ago

nudoru commented 5 years ago

When this code is present in Lister, the updates skip one, 1 -> 3, -> 5, etc. Is it a JS thing or a framework error?

{() => (range(this.state.counter).map(i => {
        return <Ticker key={'listitem-'+i}/>;
      }))}
      <hr/>
      {() => (range(this.state.counter).map(i => {
        return <Ticker key={'listitem-'+i}/>;
      }))}