ywana-core8 0.0.991 → 0.0.993
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.modern.js
CHANGED
@@ -5529,12 +5529,13 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5529
5529
|
url = _props$url === void 0 ? "/tasks" : _props$url,
|
5530
5530
|
_props$frequency = props.frequency,
|
5531
5531
|
frequency = _props$frequency === void 0 ? 1000 : _props$frequency,
|
5532
|
-
children = props.children
|
5532
|
+
children = props.children,
|
5533
|
+
ctx = props.ctx;
|
5533
5534
|
var API = CollectionAPI$1(url, host, "");
|
5534
5535
|
var _useState = useState({}),
|
5535
5536
|
listeners = _useState[0],
|
5536
5537
|
setListeners = _useState[1];
|
5537
|
-
var appContext = useContext(
|
5538
|
+
var appContext = useContext(ctx);
|
5538
5539
|
var appContextRef = useRef(appContext);
|
5539
5540
|
useEffect(function () {
|
5540
5541
|
appContextRef.current = appContext;
|