ywana-core8 0.0.991 → 0.0.992
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +1 -1
package/dist/index.cjs
CHANGED
@@ -5538,12 +5538,13 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5538
5538
|
url = _props$url === void 0 ? "/tasks" : _props$url,
|
5539
5539
|
_props$frequency = props.frequency,
|
5540
5540
|
frequency = _props$frequency === void 0 ? 1000 : _props$frequency,
|
5541
|
-
children = props.children
|
5541
|
+
children = props.children,
|
5542
|
+
ctx = props.ctx;
|
5542
5543
|
var API = CollectionAPI$1(url, host, "");
|
5543
5544
|
var _useState = React.useState({}),
|
5544
5545
|
listeners = _useState[0],
|
5545
5546
|
setListeners = _useState[1];
|
5546
|
-
var appContext = React.useContext(
|
5547
|
+
var appContext = React.useContext(ctx);
|
5547
5548
|
var appContextRef = React.useRef(appContext);
|
5548
5549
|
React.useEffect(function () {
|
5549
5550
|
appContextRef.current = appContext;
|