Skip to content

Commit

Permalink
Improving Developer Experience
Browse files Browse the repository at this point in the history
  • Loading branch information
REllEK-IO committed Apr 24, 2024
1 parent c829c53 commit 8cb0101
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ActionStrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ export const yourStrategyStitch: ActionStrategyStitch = () => {
const stepStitch = axium_createStitchNode();
const stepOne = createActionNode(someAction, {
successNode: stepStitch,
failureNode: null
})
return [stepStitch, createStrategy({
topic: 'Your strategy\'s topic',
Expand All @@ -216,10 +215,7 @@ export const yourStrategyStitch: ActionStrategyStitch = () => {
};

export const yourComposingStrategy = (stitch: ActionStrategyStitch): ActionStrategy => {
const stepFinal = createActionNode(someAction, {
successNode: null,
failureNode: null
})
const stepFinal = createActionNode(someAction)

const [
stitchEnd,
Expand All @@ -231,7 +227,6 @@ export const yourComposingStrategy = (stitch: ActionStrategyStitch): ActionStrat

const stepOne = createActionNode(someAction, {
successNode: stitchHead,
failureNode: null
});

return createStrategy({
Expand Down

0 comments on commit 8cb0101

Please sign in to comment.