[FiltersPanel]: fix unnecessary api calls on each picker filter body opening
Open
bug
- Dominant language
- TypeScript
- Stars
- 247
- Forks
- 78
- Avg merge
- 14h 27m
- Merged PRs (30d)
- 15
Description
## Actual result
Filter panel picker type filters with async/lazy datasource produce unnecessary api calls on each body open, not only on the first one.
## Expected result
Filter should load data only on first opening, then already loaded data should be used.
Note:
It behaves this way because FilterPickerBody create datasource.view inside and then body remounting each time on body open which leads to recreation view and new data load
## Environment
* UUI version: 5.10.1
Contributor guide
Assessment
This issue has not been assessed yet.