Open drborges opened 6 years ago
A GIF is worth 10000 words...
Basically, a node bound to path /array/:index must have its path refreshed when items removed/added to the array affect the path.
/array/:index
Example:
const todos = [ { id: 1, ... }, // path = /todos/0 { id: 2, ... }, // path = /todos/1 ]
When removing todos[0], the path of the remaining todo, shoud no longer be /todos/1 but rather /todos/0.
todos[0]
/todos/1
/todos/0
A GIF is worth 10000 words...
Basically, a node bound to path
/array/:index
must have its path refreshed when items removed/added to the array affect the path.Example:
When removing
todos[0]
, the path of the remaining todo, shoud no longer be/todos/1
but rather/todos/0
.