@thorgate/spa-pagination

Pagination helper for storing queries to fetch next batch of results.

Usage no npm install needed!

<script type="module">
  import thorgateSpaPagination from 'https://cdn.skypack.dev/@thorgate/spa-pagination';
</script>

README

@thorgate/spa-pagination

Pagination helper for storing queries to fetch next batch of results.

Basic Usage

import { Pagination } from '@thorgate/spa-pagination';

const MyConnectedComponent = ({ fetchSomething }) => (
    <Pagination
        name="something"
        trigger={fetchSomething}
        render={({ loadNext }) => (
            <button onClick={loadNext} />
        )}
    />
);