Hello there!
The filter function works just fine when i give it a string like ".startsWith("m") ...", But when i replace the "m" with a state then i set the state in a different function, the data of the state refreshes everywhere but not in the filter props function.
my goal is to make a filter with search bar that changes the state on change.