@stackflow/react
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -1,2 +0,2 @@ | ||
"use strict";var bt=Object.create;var O=Object.defineProperty,Bt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptor,Mt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Ut=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Y=(t,e,o)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,m=(t,e)=>{for(var o in e||(e={}))Z.call(e,o)&&Y(t,o,e[o]);if(X)for(var o of X(e))Ht.call(e,o)&&Y(t,o,e[o]);return t},C=(t,e)=>Bt(t,Mt(e));var Vt=(t,e)=>{for(var o in e)O(t,o,{get:e[o],enumerable:!0})},tt=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ft(e))!Z.call(t,s)&&s!==o&&O(t,s,{get:()=>e[s],enumerable:!(i=Nt(e,s))||i.enumerable});return t};var d=(t,e,o)=>(o=t!=null?bt(Ut(t)):{},tt(e||!t||!t.__esModule?O(o,"default",{value:t,enumerable:!0}):o,t)),qt=t=>tt(O({},"__esModule",{value:!0}),t);var Xt={};Vt(Xt,{stackflow:()=>Qt,useActions:()=>J,useActivity:()=>Kt,useActivityParams:()=>_t,useInitContext:()=>b,useStack:()=>Gt});module.exports=qt(Xt);var ot=require("react");var et=require("react"),T=(0,et.createContext)(null);var Kt=()=>(0,ot.useContext)(T);var rt=require("react");function _t(){return(0,rt.useContext)(T).params}var nt=d(require("react"));var it=require("react"),M=(0,it.createContext)({});function b(){return nt.default.useContext(M)}var st=require("react");var at=require("react"),F=(0,at.createContext)(null);var Gt=()=>(0,st.useContext)(F);var E=d(require("react"));var A=require("@stackflow/core"),v=d(require("react")),kt=d(require("react-fast-compare"));var pt=d(require("react"));var U=require("react"),ct=d(require("react-fast-compare"));function H(t){let e=(0,U.useRef)(t),o=e.current,i=(0,ct.default)(o,t);return(0,U.useEffect)(()=>{i||(e.current=t)}),i?o:t}var mt=({children:t,value:e})=>pt.default.createElement(T.Provider,{value:H(e)},t);var ft=require("@stackflow/core");function B(){return(0,ft.id)()}var ut=d(require("react"));var vt=({children:t,value:e})=>ut.default.createElement(M.Provider,{value:e},t);var lt=require("react"),V=(0,lt.createContext)(null);var dt=d(require("react"));var Pt=({children:t,value:e})=>dt.default.createElement(V.Provider,{value:e},t);var xt=require("react");function k(){return(0,xt.useContext)(V)}var yt=require("react"),q=(0,yt.createContext)(null);var Ct=require("react"),K=(0,Ct.createContext)(null);var Lt=1e3,Wt=Lt/60,At=({transitionDuration:t,initialActivity:e,activities:o,children:i})=>{let s=k(),p=b(),n=(0,v.useMemo)(()=>{let y=new Date().getTime()-t,f=e?(0,A.makeEvent)("Pushed",{activityId:B(),activityName:e({initContext:p}),params:{},eventDate:y,skipEnterActiveState:!1}):null,x=s.reduce((N,W)=>{var $,Q;return(Q=($=W.overrideInitialPushedEvent)==null?void 0:$.call(W,{pushedEvent:N}))!=null?Q:N},f);!!x&&!!f&&x.id!==f.id&&console.warn(`Stackflow - Some plugin overrides an "initialActivity" option. The "initialActivity" option you set to "${f.activityName}" in the "stackflow" is ignored.`);let w=x;w||console.warn("Stackflow - There is no initial activity. If you want to set the initial activity, add the `initialActivity` option of the `stackflow()` function or add a plugin that sets the initial activity. (e.g. `@stackflow/plugin-history-sync`)");let Ot=Object.keys(o).map(N=>(0,A.makeEvent)("ActivityRegistered",{activityName:N,eventDate:y})),z=[(0,A.makeEvent)("Initialized",{transitionDuration:t,eventDate:y}),...Ot];return w&&z.push(w),z},[]),c=(0,v.useMemo)(()=>(0,A.aggregate)(n,new Date().getTime()),[]),[a,r]=(0,v.useState)(()=>c),u=(0,v.useRef)(n),l=(0,v.useRef)(c),P=(0,v.useCallback)(()=>l.current,[l]),h=(0,v.useCallback)((y,f)=>{let x=(0,A.makeEvent)(y,f),R=[...u.current,x];u.current=R,r((0,A.aggregate)(R,new Date().getTime()))},[u,r]);return(0,v.useEffect)(()=>{let y=setInterval(()=>{let f=u.current,x=(0,A.aggregate)(f,new Date().getTime());(0,kt.default)(a,x)||(r(x),l.current=x),x.globalTransitionState==="idle"&&clearInterval(y)},Wt);return()=>{clearInterval(y)}},[u,a,r]),v.default.createElement(K.Provider,{value:a},v.default.createElement(q.Provider,{value:(0,v.useMemo)(()=>({getStack:P,dispatchEvent:h}),[P,h])},i))};var S=d(require("react"));var St=t=>JSON.parse(JSON.stringify(t)),_=()=>{let t=k(),e=b(),{dispatchEvent:o,getStack:i}=S.default.useContext(q),s=(0,S.useCallback)(r=>{let{isPrevented:u,params:l}=a("PUSHED",r);u||o("Pushed",m({},l))},[o]),p=(0,S.useCallback)(r=>{let{isPrevented:u,params:l}=a("REPLACED",r);u||o("Replaced",m({},l))},[o]),n=(0,S.useCallback)(r=>{let u=r!=null?r:{},{isPrevented:l,params:P}=a("POPPED",u);l||o("Popped",m({},P))},[o]),c=(0,S.useMemo)(()=>({dispatchEvent:o,getStack:i,push:s,replace:p,pop:n}),[o,i,s,p,n]),a=(0,S.useCallback)((r,u)=>{let l=!1,P=St(u),h=()=>{l=!0},y=f=>{P=St(f)};return t.forEach(f=>{var x,R,w;switch(r){case"PUSHED":(x=f.onBeforePush)==null||x.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;case"REPLACED":(R=f.onBeforeReplace)==null||R.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;case"POPPED":(w=f.onBeforePop)==null||w.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;default:break}}),{isPrevented:l,params:P}},[t,e]);return c};var Et=d(require("react"));var D=()=>Et.default.useContext(K);var gt=require("@stackflow/core"),g=require("react");var jt=()=>{let t=k(),e=D(),o=_(),i=(0,g.useCallback)(n=>{t.forEach(c=>{var a;(a=c.onInit)==null||a.call(c,n)})},[]),s=(0,g.useCallback)(({actions:n,effect:c})=>{switch(c._TAG){case"PUSHED":{t.forEach(a=>{var r;return(r=a.onPushed)==null?void 0:r.call(a,{actions:n,effect:c})});break}case"POPPED":{t.forEach(a=>{var r;return(r=a.onPopped)==null?void 0:r.call(a,{actions:n,effect:c})});break}case"REPLACED":{t.forEach(a=>{var r;return(r=a.onReplaced)==null?void 0:r.call(a,{actions:n,effect:c})});break}case"%SOMETHING_CHANGED%":{t.forEach(a=>{var r;return(r=a.onChanged)==null?void 0:r.call(a,{actions:n,effect:c})});break}default:break}},[]);(0,g.useEffect)(()=>{i==null||i({actions:o})},[]);let p=(0,g.useRef)(e);return(0,g.useEffect)(()=>{let n=p.current;(n?(0,gt.produceEffects)(n,e):[]).forEach(a=>{s({actions:o,effect:a})}),p.current=m({},e)},[e]),null},ht=jt;var I=d(require("react"));var G=d(require("react"));var Rt=d(require("react"));var wt=({children:t,value:e})=>Rt.default.createElement(F.Provider,{value:H(e)},t);var Jt=({activities:t,plugin:e})=>{let o=D(),i=k();return e.render({stack:C(m({},o),{render(s){let p=m(m({},o),s);return{activities:p.activities.map(n=>C(m({},n),{key:n.id,render(c){let a=t[n.name],r=G.default.createElement(a,{params:n.params});return i.forEach(u=>{var l,P;r=(P=(l=u.wrapActivity)==null?void 0:l.call(u,{activity:C(m({},n),{render:()=>r})}))!=null?P:r}),G.default.createElement(wt,{value:p},G.default.createElement(mt,{key:n.id,value:m(m({},n),c)},r))}}))}}})})},Tt=Jt;var zt=({activities:t})=>{let e=D(),o=k(),i=o.filter(p=>!!p.render);(0,I.useEffect)(()=>{i.length===0&&console.warn(`Stackflow - There is no rendering plugin, so "<Stack />" doesn't render anything. If you want to render some UI, use "@stackflow/plugin-renderer-basic" or add another rendering plugin.`)},[i]);let s=I.default.createElement(I.default.Fragment,null,i.map(p=>I.default.createElement(Tt,{activities:t,key:p.key,plugin:p})));return o.forEach(p=>{var n,c;s=(c=(n=p.wrapStack)==null?void 0:n.call(p,{stack:C(m({},e),{render(){return s}})}))!=null?c:s}),s},Dt=zt;var L=d(require("react"));function j(t){return t?t.animate===void 0||t.animate==null?{skipActiveState:!1}:{skipActiveState:!t.animate}:{skipActiveState:!1}}var It,$t=(It=L.default.useTransition)!=null?It:()=>[!1,t=>t()];function J(){let t=_(),[e,o]=$t();return(0,L.useMemo)(()=>({pending:e,push(i,s,p){e||o(()=>{t.push({activityId:B(),activityName:i,params:s,skipEnterActiveState:j(p).skipActiveState})})},replace(i,s,p){e||o(()=>{t.replace({activityId:B(),activityName:i,params:s,skipEnterActiveState:j(p).skipActiveState})})},pop(i){e||o(()=>{t.pop({skipExitActiveState:j(i).skipActiveState})})}}),[t.push,t.replace,t.pop,e,o])}function Qt(t){let e=Object.entries(t.activities).reduce((o,[i,s])=>C(m({},o),{[i]:E.default.memo(s)}),{});return{Stack(o){var s;let i=(0,E.useMemo)(()=>{var p;return((p=t.plugins)!=null?p:[]).reduce((n,c)=>[...n,...Array.isArray(c)?c:[c]],[]).map(n=>n({initContext:o.initContext}))},[]);return E.default.createElement(vt,{value:(s=o.initContext)!=null?s:{}},E.default.createElement(Pt,{value:i},E.default.createElement(At,{activities:e,initialActivity:t.initialActivity,transitionDuration:t.transitionDuration},E.default.createElement(Dt,{activities:e}),E.default.createElement(ht,null))))},useFlow:J}} | ||
"use strict";var bt=Object.create;var b=Object.defineProperty,Bt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptor,Mt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Ut=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var Y=(t,e,o)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,m=(t,e)=>{for(var o in e||(e={}))Z.call(e,o)&&Y(t,o,e[o]);if(X)for(var o of X(e))Ht.call(e,o)&&Y(t,o,e[o]);return t},C=(t,e)=>Bt(t,Mt(e));var Vt=(t,e)=>{for(var o in e)b(t,o,{get:e[o],enumerable:!0})},tt=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ft(e))!Z.call(t,s)&&s!==o&&b(t,s,{get:()=>e[s],enumerable:!(n=Nt(e,s))||n.enumerable});return t};var d=(t,e,o)=>(o=t!=null?bt(Ut(t)):{},tt(e||!t||!t.__esModule?b(o,"default",{value:t,enumerable:!0}):o,t)),qt=t=>tt(b({},"__esModule",{value:!0}),t);var Xt={};Vt(Xt,{stackflow:()=>Qt,useActions:()=>J,useActivity:()=>Kt,useActivityParams:()=>_t,useInitContext:()=>B,useStack:()=>Gt});module.exports=qt(Xt);var ot=require("react");var et=require("react"),T=(0,et.createContext)(null);var Kt=()=>(0,ot.useContext)(T);var rt=require("react");function _t(){return(0,rt.useContext)(T).params}var nt=d(require("react"));var it=require("react"),M=(0,it.createContext)({});function B(){return nt.default.useContext(M)}var st=require("react");var at=require("react"),F=(0,at.createContext)(null);var Gt=()=>(0,st.useContext)(F);var g=d(require("react"));var A=require("@stackflow/core"),v=d(require("react")),kt=d(require("react-fast-compare"));var pt=d(require("react"));var U=require("react"),ct=d(require("react-fast-compare"));function H(t){let e=(0,U.useRef)(t),o=e.current,n=(0,ct.default)(o,t);return(0,U.useEffect)(()=>{n||(e.current=t)}),n?o:t}var mt=({children:t,value:e})=>pt.default.createElement(T.Provider,{value:H(e)},t);var ft=require("@stackflow/core");function D(){return(0,ft.id)()}var ut=d(require("react"));var vt=({children:t,value:e})=>ut.default.createElement(M.Provider,{value:e},t);var lt=require("react"),V=(0,lt.createContext)(null);var dt=d(require("react"));var Pt=({children:t,value:e})=>dt.default.createElement(V.Provider,{value:e},t);var xt=require("react");function k(){return(0,xt.useContext)(V)}var yt=require("react"),q=(0,yt.createContext)(null);var Ct=require("react"),K=(0,Ct.createContext)(null);var Lt=1e3,Wt=Lt/60,At=({transitionDuration:t,initialActivity:e,activities:o,children:n})=>{let s=k(),p=B(),r=(0,v.useMemo)(()=>{let y=new Date().getTime()-t,f=e?(0,A.makeEvent)("Pushed",{activityId:D(),activityName:e({initContext:p}),params:{},eventDate:y,skipEnterActiveState:!1}):null,x=s.reduce((N,W)=>{var $,Q;return(Q=($=W.overrideInitialPushedEvent)==null?void 0:$.call(W,{pushedEvent:N}))!=null?Q:N},f);!!x&&!!f&&x.id!==f.id&&console.warn(`Stackflow - Some plugin overrides an "initialActivity" option. The "initialActivity" option you set to "${f.activityName}" in the "stackflow" is ignored.`);let w=x;w||console.warn("Stackflow - There is no initial activity. If you want to set the initial activity, add the `initialActivity` option of the `stackflow()` function or add a plugin that sets the initial activity. (e.g. `@stackflow/plugin-history-sync`)");let Ot=Object.keys(o).map(N=>(0,A.makeEvent)("ActivityRegistered",{activityName:N,eventDate:y})),z=[(0,A.makeEvent)("Initialized",{transitionDuration:t,eventDate:y}),...Ot];return w&&z.push(w),z},[]),c=(0,v.useMemo)(()=>(0,A.aggregate)(r,new Date().getTime()),[]),[a,i]=(0,v.useState)(()=>c),u=(0,v.useRef)(r),l=(0,v.useRef)(c),P=(0,v.useCallback)(()=>l.current,[l]),h=(0,v.useCallback)((y,f)=>{let x=(0,A.makeEvent)(y,f),R=[...u.current,x];u.current=R,i((0,A.aggregate)(R,new Date().getTime()))},[u,i]);return(0,v.useEffect)(()=>{let y=setInterval(()=>{let f=u.current,x=(0,A.aggregate)(f,new Date().getTime());(0,kt.default)(a,x)||(i(x),l.current=x),x.globalTransitionState==="idle"&&clearInterval(y)},Wt);return()=>{clearInterval(y)}},[u,a,i]),v.default.createElement(K.Provider,{value:a},v.default.createElement(q.Provider,{value:(0,v.useMemo)(()=>({getStack:P,dispatchEvent:h}),[P,h])},n))};var S=d(require("react"));var St=t=>JSON.parse(JSON.stringify(t)),_=()=>{let t=k(),e=B(),{dispatchEvent:o,getStack:n}=S.default.useContext(q),s=(0,S.useCallback)(i=>{let{isPrevented:u,params:l}=a("PUSHED",i);u||o("Pushed",m({},l))},[o]),p=(0,S.useCallback)(i=>{let{isPrevented:u,params:l}=a("REPLACED",i);u||o("Replaced",m({},l))},[o]),r=(0,S.useCallback)(i=>{let u=i!=null?i:{},{isPrevented:l,params:P}=a("POPPED",u);l||o("Popped",m({},P))},[o]),c=(0,S.useMemo)(()=>({dispatchEvent:o,getStack:n,push:s,replace:p,pop:r}),[o,n,s,p,r]),a=(0,S.useCallback)((i,u)=>{let l=!1,P=St(u),h=()=>{l=!0},y=f=>{P=St(f)};return t.forEach(f=>{var x,R,w;switch(i){case"PUSHED":(x=f.onBeforePush)==null||x.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;case"REPLACED":(R=f.onBeforeReplace)==null||R.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;case"POPPED":(w=f.onBeforePop)==null||w.call(f,{actionParams:P,actions:C(m({},c),{preventDefault:h,overrideActionParams:y})});break;default:break}}),{isPrevented:l,params:P}},[t,e]);return c};var gt=d(require("react"));var I=()=>gt.default.useContext(K);var Et=require("@stackflow/core"),E=require("react");var jt=()=>{let t=k(),e=I(),o=_(),n=(0,E.useCallback)(r=>{t.forEach(c=>{var a;(a=c.onInit)==null||a.call(c,r)})},[]),s=(0,E.useCallback)(({actions:r,effect:c})=>{switch(c._TAG){case"PUSHED":{t.forEach(a=>{var i;return(i=a.onPushed)==null?void 0:i.call(a,{actions:r,effect:c})});break}case"POPPED":{t.forEach(a=>{var i;return(i=a.onPopped)==null?void 0:i.call(a,{actions:r,effect:c})});break}case"REPLACED":{t.forEach(a=>{var i;return(i=a.onReplaced)==null?void 0:i.call(a,{actions:r,effect:c})});break}case"%SOMETHING_CHANGED%":{t.forEach(a=>{var i;return(i=a.onChanged)==null?void 0:i.call(a,{actions:r,effect:c})});break}default:break}},[]);(0,E.useEffect)(()=>{n==null||n({actions:o})},[]);let p=(0,E.useRef)(e);return(0,E.useEffect)(()=>{let r=p.current;(r?(0,Et.produceEffects)(r,e):[]).forEach(a=>{s({actions:o,effect:a})}),p.current=m({},e)},[e]),null},ht=jt;var O=d(require("react"));var G=d(require("react"));var Rt=d(require("react"));var wt=({children:t,value:e})=>Rt.default.createElement(F.Provider,{value:H(e)},t);var Jt=({activities:t,plugin:e})=>{let o=I(),n=k();return e.render({stack:C(m({},o),{render(s){let p=m(m({},o),s);return{activities:p.activities.map(r=>C(m({},r),{key:r.id,render(c){let a=t[r.name],i=G.default.createElement(a,{params:r.params});return n.forEach(u=>{var l,P;i=(P=(l=u.wrapActivity)==null?void 0:l.call(u,{activity:C(m({},r),{render:()=>i})}))!=null?P:i}),G.default.createElement(wt,{value:p},G.default.createElement(mt,{key:r.id,value:m(m({},r),c)},i))}}))}}})})},Tt=Jt;var zt=({activities:t})=>{let e=I(),o=k(),n=o.filter(p=>!!p.render);(0,O.useEffect)(()=>{n.length===0&&console.warn(`Stackflow - There is no rendering plugin, so "<Stack />" doesn't render anything. If you want to render some UI, use "@stackflow/plugin-renderer-basic" or add another rendering plugin.`)},[n]);let s=O.default.createElement(O.default.Fragment,null,n.map(p=>O.default.createElement(Tt,{activities:t,key:p.key,plugin:p})));return o.forEach(p=>{var r,c;s=(c=(r=p.wrapStack)==null?void 0:r.call(p,{stack:C(m({},e),{render(){return s}})}))!=null?c:s}),s},Dt=zt;var L=d(require("react"));function j(t){return t?t.animate===void 0||t.animate==null?{skipActiveState:!1}:{skipActiveState:!t.animate}:{skipActiveState:!1}}var It,$t=(It=L.default.useTransition)!=null?It:()=>[!1,t=>t()];function J(){let t=_(),[e,o]=$t();return(0,L.useMemo)(()=>({pending:e,push(n,s,p){let r=D();return o(()=>{t.push({activityId:r,activityName:n,params:s,skipEnterActiveState:j(p).skipActiveState})}),{activityId:r}},replace(n,s,p){let r=D();return o(()=>{t.replace({activityId:D(),activityName:n,params:s,skipEnterActiveState:j(p).skipActiveState})}),{activityId:r}},pop(n){o(()=>{t.pop({skipExitActiveState:j(n).skipActiveState})})}}),[t.push,t.replace,t.pop,e,o])}function Qt(t){let e=Object.entries(t.activities).reduce((o,[n,s])=>C(m({},o),{[n]:g.default.memo(s)}),{});return{Stack(o){var s;let n=(0,g.useMemo)(()=>{var p;return((p=t.plugins)!=null?p:[]).reduce((r,c)=>[...r,...Array.isArray(c)?c:[c]],[]).map(r=>r({initContext:o.initContext}))},[]);return g.default.createElement(vt,{value:(s=o.initContext)!=null?s:{}},g.default.createElement(Pt,{value:n},g.default.createElement(At,{activities:e,initialActivity:t.initialActivity,transitionDuration:t.transitionDuration},g.default.createElement(Dt,{activities:e}),g.default.createElement(ht,null))))},useFlow:J}} | ||
//# sourceMappingURL=index.js.map |
@@ -13,3 +13,5 @@ import type { ActivityComponentType } from "./activity"; | ||
animate?: boolean; | ||
}) => void; | ||
}) => { | ||
activityId: string; | ||
}; | ||
/** | ||
@@ -20,3 +22,5 @@ * Push new activity in the top and remove current top activity when new activity is activated | ||
animate?: boolean; | ||
}) => void; | ||
}) => { | ||
activityId: string; | ||
}; | ||
/** | ||
@@ -23,0 +27,0 @@ * Remove top activity |
{ | ||
"name": "@stackflow/react", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
@@ -52,3 +52,3 @@ "exports": { | ||
}, | ||
"gitHead": "c0f15f047f582e79c140c18343142c6abd702cf3" | ||
"gitHead": "8c9aae7e8bb865ab9bfeca8f9a0e4585e9f91853" | ||
} |
@@ -37,3 +37,5 @@ import React, { useMemo } from "react"; | ||
}, | ||
) => void; | ||
) => { | ||
activityId: string; | ||
}; | ||
@@ -49,3 +51,5 @@ /** | ||
}, | ||
) => void; | ||
) => { | ||
activityId: string; | ||
}; | ||
@@ -71,8 +75,7 @@ /** | ||
push(activityName, params, options) { | ||
if (pending) { | ||
return; | ||
} | ||
const activityId = makeActivityId(); | ||
startTransition(() => { | ||
coreActions.push({ | ||
activityId: makeActivityId(), | ||
activityId, | ||
activityName, | ||
@@ -83,7 +86,10 @@ params, | ||
}); | ||
return { | ||
activityId, | ||
}; | ||
}, | ||
replace(activityName, params, options) { | ||
if (pending) { | ||
return; | ||
} | ||
const activityId = makeActivityId(); | ||
startTransition(() => { | ||
@@ -97,7 +103,8 @@ coreActions.replace({ | ||
}); | ||
return { | ||
activityId, | ||
}; | ||
}, | ||
pop(options) { | ||
if (pending) { | ||
return; | ||
} | ||
startTransition(() => { | ||
@@ -104,0 +111,0 @@ coreActions.pop({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133816
1190