You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the "acquisition order edition form" we are performing 6 requests as minimum, plus 4 requests for each additional order line. This means that an adquisiton order with 6 order lines is performing 26 requests. We have to look for a solution to prevent a request each time we render a vocabularyField. (Redux could be a solution).
Steps to reproduce
Search for an acquisition order with 5 or more order lines.
Edit it and check in the invenio-app-ils console the requests (or the network tab in the devtools).
One possible solution would be to add a max-age: x seconds cache header in the axios request so that same requests, for same vocab, are cached after the first request.
Describe the problem
In the "acquisition order edition form" we are performing 6 requests as minimum, plus 4 requests for each additional order line. This means that an adquisiton order with 6 order lines is performing 26 requests. We have to look for a solution to prevent a request each time we render a
vocabularyField
. (Redux could be a solution).Steps to reproduce
Related to: #192
The text was updated successfully, but these errors were encountered: