Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): Update Doc Link #1278

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs/deploying-codemods/workflow-engine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Every migration requires ability to work on different levels simultaneously:
- files - [iterate](/api-reference/file/files), copy, move, remove
- code blocks - [iterate](/api-reference/transformation/astgrep), [change](/api-reference/transformation/astgrep/reference#replace-replacement), [remove](/api-reference/transformation/astgrep/reference#replace-replacement)

You need ability to jump between those levels quickly. Child level should be able to access data from parent level. Core principle in workflow engine is passing context. We are using [Asyncronous Context Tracking](https://nodejs.org/api-reference/async_context.html#class-asynclocalstorage) to able to pass context between function calls. When you run a function within context, it will be propagated down to all other function calls. Similar how React context is getting passed down to all the children components.
You need ability to jump between those levels quickly. Child level should be able to access data from parent level. Core principle in workflow engine is passing context. We are using [Asyncronous Context Tracking](https://nodejs.org/docs/latest/api/async_context.html#asynchronous-context-tracking) to able to pass context between function calls. When you run a function within context, it will be propagated down to all other function calls. Similar how React context is getting passed down to all the children components.

Context is getting passed inside function's chain calls and also inside callback. Let's look at simple example:

Expand Down
Loading