Open FangzhuoXi opened 2 years ago
Description: The else block can be omitted. So we can have less function calls but still same effect.
Files: https://github.com/Team-Pharos/FEC_Lighthouse/blob/47b9ec0dc4d9036de296df743ecc2f592ea5d160/src/components/Questions/SearchBar.jsx#L13-L15
This is actually a necessary component! Part of it is if the user backspaces, the list needs to go back to an unflitered list! But it isn't an api call :)
Description: The else block can be omitted. So we can have less function calls but still same effect.
Files: https://github.com/Team-Pharos/FEC_Lighthouse/blob/47b9ec0dc4d9036de296df743ecc2f592ea5d160/src/components/Questions/SearchBar.jsx#L13-L15