@quitecustard/react 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useState, useTransition } from 'react';
3
- import { useRouter } from 'next/navigation';
3
+ import { useRouter } from 'next/navigation.js';
4
4
  // Narrowed from `unknown` rather than constrained on the generic: actions return unions like
5
5
  // `{ error } | { id }`, and a result arm carrying no `error` key at all still has to pass through.
6
6
  const errorOf = (result) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quitecustard/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "React hooks for Next.js apps: run a server action with pending state, a surfaced refusal and a route refresh",
5
5
  "keywords": [
6
6
  "react",