Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
utku-ozturk committed Jul 28, 2024
1 parent 80c3794 commit cd35f9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion es/components/ui/Alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ export var Alerts = /*#__PURE__*/function (_React$Component) {
}
}], [{
key: "setStore",
value: /** This must be called with the current Redux store for the app before Alerts can be used. */
value:
/**
* This must be called with the current Redux store for the app before Alerts can be used.
* @param {*} useStore
* @param {*} isLegacy pass false to use new redux v5 dispatcher call ({ type: 'STRING', payload: ... })
*/
function setStore(useStore, isLegacy) {
store = useStore;
if (typeof isLegacy === 'boolean') {
Expand Down
6 changes: 5 additions & 1 deletion src/components/ui/Alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ let reduxIsLegacy = true;
*/
export class Alerts extends React.Component {

/** This must be called with the current Redux store for the app before Alerts can be used. */
/**
* This must be called with the current Redux store for the app before Alerts can be used.
* @param {*} useStore
* @param {*} isLegacy pass false to use new redux v5 dispatcher call ({ type: 'STRING', payload: ... })
*/
static setStore(useStore, isLegacy){
store = useStore;
if (typeof isLegacy === 'boolean') {
Expand Down

0 comments on commit cd35f9d

Please sign in to comment.