Skip to content

Revamp search componant so that it is not rerendered on each change in the searchFields state.

Antoine requested to merge ZeHiro/kresus:optimize-search-component into master

this MR adresses the point 6 of #593 (closed) . The idea is to get the state as close as possible from where it is needed and get "stable" types and category selects by using reselect to calculate the options.

This MR is part of a more global revamp of the operation list to make it more reactive. Currently, on each change in the search form, the whole component "OperationList" is rerendered, and will still be rerendered with this MR. With MR !410 (closed) this won't be the case.

Edited by Antoine

Merge request reports