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(2d): retain reactivity in code transitions #990

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

aarthificial
Copy link
Contributor

Code signal methods like append or replace now retain nested signals:

const text = createSignal('');
yield* code().code.append()`\nconsole.log("${text}");`;
// changes to text are still reflected in the code above
yield* text('Hello World!', 1.2, linear);

Code signal methods like `append` or `replace` now retain nested signals:
```ts
const text = createSignal('');
yield* code().code.append()`\nconsole.log("${text}");`;
// changes to text are still reflected in the code above
yield* text('Hello World!', 1.2, linear);
```
@aarthificial aarthificial merged commit 7ccc1c3 into motion-canvas:main Mar 11, 2024
9 checks passed
@aarthificial aarthificial deleted the code-imporovements branch March 11, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant