Skip to content

Commit

Permalink
feat: support flow sync one way in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Darío Javier Cravero committed Jun 16, 2020
1 parent 2dc59c1 commit d2e8c0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions ensure-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@ function reducer(state, action) {
\`Story "$\{action.id}" doesn't exist. See the valid stories logged above this error.\`
)
}
if (ViewsTools.SYNC_ONE_WAY) {
return action.id.startsWith(ViewsTools.SYNC_ONE_WAY)
? {
flow: getNextFlow(action.id, state.flow),
actions: state.actions,
}
: state;
}
}
if (state.actions[0] === action.id) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viewstools/morph",
"version": "23.7.0",
"version": "23.8.0",
"description": "Views language morpher",
"main": "bin.js",
"bin": {
Expand Down

0 comments on commit d2e8c0b

Please sign in to comment.