{"repo":"Senbonzakura1234/use-pull-to-refresh","free":true,"listed":false,"github":"https://github.com/Senbonzakura1234/use-pull-to-refresh","clone":"git clone https://github.com/Senbonzakura1234/use-pull-to-refresh.git","description":"A simple React custom hook for pull-to-refresh function that support NextJs","language":"TypeScript","stars":34,"topics":["custom-hook","react","ssr","typescript","nextjs"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Use Pull To Refresh Table of contents - Table of contents - Description - Purposes - Prerequisites - Getting Started - What's the different to other similar packages? - Installation - Usage - API - Parameters - Return Type - Change log - Authors - License Description A simple React custom hook for pull-to-refresh function that support NextJs SSR. Purposes Lots of web application needs custom scroll area for various reasons, however since we are not using browser native scroll, the native pull to refresh API is unusable since it's tied to the scroll event on html tag. This hooks is the solution to resolve this issue by recreating the native pull top behavior while also let you choose what proccess to run on each pull event end. Prerequisites This project requires NodeJS (version 16 or later) and React 17+ Getting Started This custom hook helps you implement the pull-to-refresh feature in your app. It supports NextJs SSR that some other packages don't. It also allows support of a custom Scroll Area that was created by yourself. What's the different to other similar packages? - react-pull-to-refresh : will run into error 'window' is not defined when using with NextJs SSR. - react-hooks-pull-to-refresh, react-pull-updown-to-refresh, react-web-pull-to-refresh : Either being unmaintained or doesn't support Typescript, or newer version of React. - react-native-pull-refresh-android : solution only available for react native. Installation BEFORE YOU INSTALL: please read the prerequisi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Senbonzakura1234","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Senbonzakura1234/use-pull-to-refresh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}