[Tech] : Refactor fluidType
The following discussion from !1137 (merged) should be addressed:
-
@bdumont started a discussion: chore🧹: The way we pass
fluidType
is not consistent. Sometimes it's through function arguments, sometimes is through dependencies like this change.I think it's better to access data through dependencies but it would be worth doing in another MR.
Worth checking
I think it could also be interesting to put currentFluidType
in redux's store instead of passing it through props in multiple components. Since a lot of components depend on this, this would remove quite some code.
Other examples
Edited by Bastien DUMONT