Socket
Socket
Sign inDemoInstall

@trackunit/react-table-pagination

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trackunit/react-table-pagination - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4

5

index.cjs.js

@@ -7,2 +7,3 @@ 'use strict';

const defaultPageSize = 50;
/**

@@ -14,3 +15,3 @@ * Custom hook for handling Relay pagination in tables.

*/
const useRelayPagination = (props = { pageSize: 50 }) => {
const useRelayPagination = (props = { pageSize: defaultPageSize }) => {
const [variables, setVariables] = react.useState({ first: props.pageSize });

@@ -60,5 +61,5 @@ const [pageInfo, setPageInfo] = react.useState();

};
}, [variables, nextPage, previousPage, isLoading, reset, pageInfo]);
}, [props.pageSize, variables, nextPage, previousPage, isLoading, reset, pageInfo]);
};
exports.useRelayPagination = useRelayPagination;
import { useState, useCallback, useMemo } from 'react';
const defaultPageSize = 50;
/**

@@ -9,3 +10,3 @@ * Custom hook for handling Relay pagination in tables.

*/
const useRelayPagination = (props = { pageSize: 50 }) => {
const useRelayPagination = (props = { pageSize: defaultPageSize }) => {
const [variables, setVariables] = useState({ first: props.pageSize });

@@ -55,5 +56,5 @@ const [pageInfo, setPageInfo] = useState();

};
}, [variables, nextPage, previousPage, isLoading, reset, pageInfo]);
}, [props.pageSize, variables, nextPage, previousPage, isLoading, reset, pageInfo]);
};
export { useRelayPagination };

2

package.json
{
"name": "@trackunit/react-table-pagination",
"version": "0.0.2",
"version": "0.0.4",
"repository": "https://github.com/Trackunit/manager",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.txt",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc