naystack 1.7.35 → 1.7.36

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.
@@ -128,7 +128,7 @@ function useAuthFetch({ skip } = {}) {
128
128
  function AuthApply({ data }) {
129
129
  const setToken = useSetToken();
130
130
  (0, import_react.useEffect)(() => {
131
- if (data) {
131
+ if (data !== void 0) {
132
132
  setToken(data);
133
133
  }
134
134
  }, [data]);
@@ -90,7 +90,7 @@ function useAuthFetch({ skip } = {}) {
90
90
  function AuthApply({ data }) {
91
91
  const setToken = useSetToken();
92
92
  useEffect(() => {
93
- if (data) {
93
+ if (data !== void 0) {
94
94
  setToken(data);
95
95
  }
96
96
  }, [data]);
@@ -125,7 +125,7 @@ function useAuthFetch({ skip } = {}) {
125
125
  function AuthApply({ data }) {
126
126
  const setToken = useSetToken();
127
127
  (0, import_react.useEffect)(() => {
128
- if (data) {
128
+ if (data !== void 0) {
129
129
  setToken(data);
130
130
  }
131
131
  }, [data]);
@@ -90,7 +90,7 @@ function useAuthFetch({ skip } = {}) {
90
90
  function AuthApply({ data }) {
91
91
  const setToken = useSetToken();
92
92
  useEffect(() => {
93
- if (data) {
93
+ if (data !== void 0) {
94
94
  setToken(data);
95
95
  }
96
96
  }, [data]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.7.35",
3
+ "version": "1.7.36",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",