# use-latest

> A React helper hook for storing latest value in ref object (updated in useEffect's callback).

Latest version **1.3.0** (published 2024-12-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-latest
pnpm add use-latest
yarn add use-latest
bun add use-latest
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2024-12-13 |
| First published | 2019-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Maintainers | andarist |

## Links

- npm: https://www.npmjs.com/package/use-latest
- Repository: https://github.com/Andarist/use-latest
- Homepage: https://github.com/Andarist/use-latest#readme
- Issues: https://github.com/Andarist/use-latest/issues
- npm.io page: https://npm.io/package/use-latest

## Dependencies (1)

- [use-isomorphic-layout-effect](https://npm.io/package/use-isomorphic-layout-effect.md) ^1.1.1

## Recent versions

- 1.3.0 (latest) — 2024-12-13
- 1.2.1 — 2022-04-24
- 1.2.0 — 2020-10-26
- 1.1.0 — 2020-06-30
- 1.0.0 — 2019-03-25

## README

# use-latest

A React helper hook for storing latest value in ref object (updated in useEffect's callback).

---
_Source: https://npm.io/package/use-latest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
