Replies: 1 comment
-
Hi @chengtie, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
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 likeWe write all our custom functions in
functions.js
. In one function, we would like to write a logic such that if this function is executed, we dispatch an action to modify the value ofkey
in the Redux state.If it was inside a webpage, dispatching an action would be for instance
this.props.dispatch({ type: 'settings/setKey', payload: "newValue" })
. But we don't know how to trigger this fromfunctions.js
.Could anyone help?
Beta Was this translation helpful? Give feedback.
All reactions