Skip to content

Commit

Permalink
Merge pull request #2420 from epam/fix/requesting-extra-items-on-scro…
Browse files Browse the repository at this point in the history
…ll-lazy

[LazyDataSource]: Fixed requesting extra items on scroll lazy.
  • Loading branch information
AlekseyManetov authored Jul 19, 2024
2 parents 6a8e340 + a040db9 commit c0d6bbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
**What's Fixed**
* [FiltersPanel]: set `undefined` value instead of `null` on clear action in numeric filter.
* [ApiContext] Combine user's headers with internal ones instead of replacing them when calling `processRequest` function
* [LazyDataSource]: Fixed requesting already loaded data on scroll.
* [LazyDataSource]: Fixed requesting already loaded data on scroll.
* [Pickers]: fixed infinite updating if onValueChange is called in useEffect (React components are rendered with render from 'react-dom').

# 5.8.2 - 11.07.2024

Expand All @@ -15,7 +18,7 @@
* [RTE]: added possibility to customize set of available options for Header, Color and Note plugins

**What's Fixed**
* Fixed invalid mode for inline inputs
* Fixed invalid mode for inline inputs
* [AnalyticContext]: fixed GA connection
* [Checkbox]: fixed icon size according design
* [RadioInput]: fixed caption line-height according design
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export function useLoadData<TItem, TId, TFilter = any>(
promiseInProgressRef.current = Promise.resolve({ isUpdated: false, isOutdated: false, tree });
}

promiseInProgressRef.current = promiseInProgressRef.current.then(() =>
loadMissingImpl({ tree, using, loadAllChildren, isLoadStrict, dataSourceState }));
promiseInProgressRef.current = promiseInProgressRef.current.then(({ tree: currentTree }) =>
loadMissingImpl({ tree: currentTree, using, loadAllChildren, isLoadStrict, dataSourceState }));

return promiseInProgressRef.current;
}, [loadMissingImpl]);
Expand Down

0 comments on commit c0d6bbc

Please sign in to comment.