Closed eliawk closed 6 years ago
I don't now why we use a state
in the videolist item. Isn't that just a thing we use for tracking the state of the form? If I'm right, then we can just read the info for rendering video-list-item from the props directly, right?
In general @jellegerbrandy I think you are right. And when we need to get calculated pieces of state from our store (uploadProgress
may be an example), then we should use a selector
@jelle we need some logic, becasue the progress could be in progress or ended ( = 100%). but the selector
is the answer to my problem instead of local stage
This code is in
VideoForm.js
and inVideoListItem.js
.i think we need to write it just once and reuse it. Also in
VideoListItem.js
there is some issue on the update cycle, it doesn't always dipaly the correct value.