epam / epam/UUI

[FiltersPanel]: fix unnecessary api calls on each picker filter body opening

Open
#2,573 0 comments 0 reactions 1 assignee Claimed by @i-runets View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.