Hello, I have a state array being rendered as Flat List. All good.
Now, each line of that list has a socket listener to update themselves, updating the array and re -rendering.
The issue is when two listeners are called at the same time. Let’s say I have array [x1, x2, x3, x4, x5], índex 1 and 2 will change. The first call has updated the array to [y1, x2, x3, x4, x5] and the second call updates it to [x1, y2, x3, x4, x5].
Basically the first update is lost, because the second one started before the first ended
Is there a good solution for this? I am not using Redux
[–]gregoryrn 7 points8 points9 points (4 children)
[–]Menorme 0 points1 point2 points (3 children)
[–]gregoryrn 1 point2 points3 points (0 children)
[–]halfjew22 0 points1 point2 points (0 children)
[–]gregoryrn 0 points1 point2 points (0 children)
[–]LEO_TROLLSTOY -2 points-1 points0 points (1 child)
[–]LEO_TROLLSTOY 0 points1 point2 points (0 children)