Replies: 1 comment 2 replies
-
Hi @chengtie, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have an add-in built with ReactJS, redux, and redux-saga. Now, we are adding custom functions to the add-in. In our manifest, we have the following setting, where
Functions.Taskpane.Url
points to a webpageourdomain.com/#/functions
.The page
ourdomain.com/#/functions
is built with ReactJS and Redux. It's likeInside a custom function
f
, we useOfficeRuntime.storage.getItem("shared-settings")
to get the value ofsettings
.When the component
FunctionsStart
is loaded,settings
in the Redux store first hasinitialValue
, then it quickly changes tostableValue
. Our tests show that the first time we run the functionf
(which triggers the loading ofFunctionsStart
), the value ofsettings
isinitialValue
; the second (and following) time we run the functionf
, the value ofsettings
isstableValue
.However, what we would like to achieve is that inside the function
f
, we always getstableValue
, even from the first time of the execution. We would like to run the body of the functionf
only after the properties ofFunctionsStart
has become stable.Does anyone know how to achieve that?
Beta Was this translation helpful? Give feedback.
All reactions