in src/legacy/stitch/stitch.ts [39:55]
export function raise<T extends ActionHandler>(
actionType: string,
callback?: (actionToExecute: T) => void
) {
console.error("[satcheljs-stitch] The 'raise' API is deprecated. Use 'raiseAction' instead.");
// Create a no-op action to execute
let actionToExecute = action(actionType)(() => {});
if (callback) {
// Pass it to the callback so that the consumer can call it with arguments
callback(<T>actionToExecute);
} else {
// No callback was provided, so just execute it with no arguments
actionToExecute();
}
}