Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Related Story

UIOR-190 Spike: figure out the best option of i-scroll/pagination to use within MCL component

Investigation

During investigation it was found that stripes MCL component supports i-scroll by default (requires just right configuration). So the best option is to use already implemented features that do smth new from scratch.

Example of usage

<MultiColumnList
  contentData={data}
  virtualize
  height={800}
  onNeedMoreData={fetchMore}
/>

in case of `accumulate` resource fetchMore should look smth similar to

const { mutator: { mutatorExample } } = this.props;

const params = {
  offset: previousOffset + limitValue,
  limit: limitValue,
  stats: true,
  query: '',
}; mutatorExample.GET({ params });


in case of non `accumulate` resource fetchMore should use localResource to update Okapi (REST) resource via `recordsRequired` property