open-formulieren / open-forms-sdk

A Javascript SDK for Open Forms
https://open-forms.readthedocs.io/en/stable/developers/sdk/index.html
Other
2 stars 6 forks source link

Appointments: multi-product makes duplicate requests #546

Closed sergei-maertens closed 1 year ago

sergei-maertens commented 1 year ago

The fetch-products hook is getting called multiple times and with every additional product, the amount of calls increases.

There's probably something broken in the hooks dependencies.

Maybe this would be the time to introduce tanstack query as it should handle caching/de-duplication out of the box?