It depends on the specific requirements of your application.
If your filters are simple and independent of each other, setting up independent states for each filter may be easier to manage as it allows you to update a single filter without affecting the others.
However, if your filters are complex and interrelated, creating a singular Object for all filters may be more beneficial as it allows you to track changes to multiple filters at once and keep them organized.
Ultimately, it is up to the developer to determine which approach best suits the requirements of their application.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-06 10:25:06 +0000
Seen: 9 times
Last updated: May 06 '23