UNPKG

@utilityjs/use-get-latest

Version:

A React hook that stores & updates `ref.current` with the most recent value.

48 lines 1.23 kB
{ "name": "@utilityjs/use-get-latest", "version": "2.0.0", "description": "A React hook that stores & updates `ref.current` with the most recent value.", "license": "MIT", "homepage": "https://github.com/mimshins/utilityjs/tree/main/packages/hooks/use-get-latest", "repository": { "type": "git", "url": "git@github.com:mimshins/utilityjs.git", "directory": "packages/hooks/use-get-latest" }, "bugs": { "url": "https://github.com/mimshins/utilityjs/issues" }, "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "./dist", "README.md", "LICENSE" ], "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "keywords": [ "javascript", "typescript", "react", "react hook", "ref", "useref", "update ref", "latest ref value" ], "peerDependencies": { "react": ">=16.8" }, "scripts": { "test": "vitest run --config ../../../vitest.browser.config.ts --root .", "test:watch": "vitest --config ../../../vitest.browser.config.ts --root .", "build": "tsdown", "release": "pnpm publish . --tag latest --access public --no-git-checks" } }