then-purpleT
Refineβ€’3y ago
then-purple

Filtering with UseSelect Hooks

There are 2 tables:
  1. Parent (Category)
  2. Children (Customer)
By Cases:
  1. When Customer table is filtered by Category
    And there is a Customer that matches the Category (works as expected)
  2. When Customer table is filtered by Category
    And there is no Customer data that matches the Category (an error occurred, incorrect payload happen)
Payload
{{API_URL}}/categories?filter[0]=id||$in

Expected Payload
{{API_URL}}/categories?filter[0]=id{{category_id}}

Repo: https://github.com/Us3r-gitHub/Refine-Nest
UseSelect_-_Error.png
GitHub
Contribute to Us3r-gitHub/Refine-Nest development by creating an account on GitHub.
Was this page helpful?