@livequery/react 1.0.82 → 1.0.85

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,2 +1,3 @@
1
+ "use client";
1
2
  import { createContextFromHook } from './hooks/createContextFromHook';
2
3
  export const [useLiveQueryContext, LiveQueryContextProvider] = createContextFromHook((props) => props);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import React from 'react';
2
3
  import { createContext, useContext } from "react";
3
4
  export const createContextFromHook = (fn) => {
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import { createContextFromHook } from './createContextFromHook';
2
3
  export const createStaticContext = () => createContextFromHook((props) => props.value);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useEffect, useMemo } from "react";
2
3
  import { useLiveQueryContext } from "./LiveQueryContext";
3
4
  import { useObservable } from "./useObservable";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useCollectionData } from "./useCollectionData";
2
3
  export const useDocumentData = (ref, options) => {
3
4
  const { items, loading, error, reload, $changes } = useCollectionData(ref, options);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState } from "react";
2
3
  export const useMonitor = (fn) => {
3
4
  const [{ error, data, loading }, update] = useState({});
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useEffect, useState } from 'react';
2
3
  export const useObservable = (o, default_value) => {
3
4
  let mounting = true;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/livequery/react"
5
5
  },
6
6
  "type": "module",
7
- "version": "1.0.82",
7
+ "version": "1.0.85",
8
8
  "description": "",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "build/**/*"
13
13
  ],
14
14
  "dependencies": {
15
- "@livequery/client": "^1.0.29"
15
+ "@livequery/client": "^1.0.53"
16
16
  },
17
17
  "devDependencies": {
18
18
  "react": "^17.0.2",