Answers for "update(): expected spec of $splice to be an array of arrays; got 1. Did you forget to wrap your parameters in an array?"

0

update(): expected spec of $splice to be an array of arrays; got 1. Did you forget to wrap your parameters in an array?

this.setState({
  blocks: update(this.state.blocks, {$splice: [[pos, 0, obj]]})
})
Posted by: Guest on September-19-2020

Code answers related to "update(): expected spec of $splice to be an array of arrays; got 1. Did you forget to wrap your parameters in an array?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language