# next-hydration-guard

> Prevents Next.js App Router Hydration errors

Latest version **1.0.0** (published 2024-04-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install next-hydration-guard
pnpm add next-hydration-guard
yarn add next-hydration-guard
bun add next-hydration-guard
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-04-05 |
| First published | 2024-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dexxiez |
| Maintainers | dexxiez |
| Keywords | next.js, react, hydration, app router |

## Links

- npm: https://www.npmjs.com/package/next-hydration-guard
- Repository: https://github.com/dexxiez/next-hydration-guard
- Homepage: https://dexxiez.github.io/next-hydration-guard/
- Issues: https://github.com/dexxiez/next-hydration-guard/issues
- npm.io page: https://npm.io/package/next-hydration-guard

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-04-05
- 0.1.0 — 2024-02-25
- 0.0.2 — 2024-02-25
- 0.0.1 — 2024-02-25

## README

<h3 align="center">
  Next Hydration Guard
</h3>
<p align="center">
  The successor of No More Tears Shampoo by Johnson and Johnson
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/next-hydration-guard">
    <img src="https://img.shields.io/npm/v/next-hydration-guard.svg" alt="Version" />
  </a>
  <a href="https://www.npmjs.com/package/next-hydration-guard">
    <img src="https://img.shields.io/npm/dt/next-hydration-guard.svg" alt="Downloads" />
  </a>
  <img src="https://img.shields.io/badge/TESTS-OBVIOUSLY_PASSING-magenta" alt="Tests" />
  <a href="https://www.npmjs.com/package/next-hydration-guard">
    <img src="https://img.shields.io/npm/l/next-hydration-guard.svg" alt="License" />
  </a>
</p>

![rosen hydration](https://github.com/dexxiez/next-hydration-guard/assets/72058466/836f1cf8-126e-4ee3-819c-62b72f387122)

**Getting Started:**

1. **Install:** `echo "you should probably know by now"`
2. **Import and use:**

```jsx
import { NextHydrationGuard } from "next-hydration-guard";
// or
import NextHydrationGuard from "next-hydration-guard"; // Also available if you want instead

export const BigChongus = ({ bigChongusData }) => {
  // Very important stuff goes here..

  return (
    <NextHydrationGuard data={bigChongusData} fallback={<div>Loading...</div>}>
      <QuestionableDataAtBest data={bigChongusData} />
    </NextHydrationGuard>
  );
};
```

3. **Have a life (optional):** Spend time with the wife and kids.

---

**Documentation:** [Wide range of documentation](https://www.google.com)

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