development environment: I am using ReactJS, React Query, Recoil and TypeScript.
I ran into one problem when communicating with REST api.
When I get a list through GET communication, I use a query string, but I'm not sure how to dynamically create the query string.
For example 'read?page=1&perPage=10&sorting=created' or 'read?page=1&perPage=20&text=candy&sorting=older' or It could also be 'read?text=snack&category=price'.
Parameter values are managed by Recoil, so I am making a query string by collecting only non-null values, but I am looking for a better way.
Thank you so much for sharing your knowledge!