@geee-be/react-utils 1.0.3 → 1.0.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @geee-be/react-utils
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - b1b11e7: use client
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { useCallback, useEffect, useMemo } from 'react';
2
3
  /**
3
4
  * React hook to create and manage a Broadcast Channel across multiple browser windows.
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { useEffect, useState } from 'react';
2
3
  import { deserialize, getInitialValue, serialize } from './state.util.js';
3
4
  export const useHistoryState = (key, initialValue, replace = true, options) => {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { useCallback, useEffect, useState } from 'react';
2
3
  import { deserialize, getInitialValue, serialize } from './state.util.js';
3
4
  // Provides hook that persist the state with local storage with sync'd updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geee-be/react-utils",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { useCallback, useEffect, useMemo } from 'react';
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import type { Dispatch, SetStateAction } from 'react';
2
4
  import { useEffect, useState } from 'react';
3
5
  import type { InitialValue, SerializationOptions } from './state.util.js';
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import type { Dispatch, SetStateAction } from 'react';
2
4
  import { useCallback, useEffect, useState } from 'react';
3
5
  import type { InitialValue, SerializationOptions } from './state.util.js';