Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.