@brightleaf/react-hooks
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -36,2 +36,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "useMutation", { | ||
enumerable: true, | ||
get: function () { | ||
return _useMutation.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "useNes", { | ||
@@ -72,2 +78,4 @@ enumerable: true, | ||
var _useMutation = _interopRequireDefault(require("./use-mutation")); | ||
var _useNes = _interopRequireDefault(require("./use-nes")); | ||
@@ -74,0 +82,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = exports.useGraphQL = void 0; | ||
exports.default = exports.useMutation = void 0; | ||
@@ -39,3 +39,3 @@ var _graphqlRequest = require("graphql-request"); | ||
const useMutation = function (url, query, variables) { | ||
const useMutation = function (url, query) { | ||
const [state, dispatch] = (0, _react.useReducer)(reducer, { | ||
@@ -66,4 +66,4 @@ data: [], | ||
exports.useGraphQL = useMutation; | ||
exports.useMutation = useMutation; | ||
var _default = useMutation; | ||
exports.default = _default; |
{ | ||
"name": "@brightleaf/react-hooks", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Useful react hooks", | ||
@@ -5,0 +5,0 @@ "files": [ |
26677
741