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

<effect> not re-running when it depends on input #59

Closed
vwong opened this issue Jul 10, 2024 · 0 comments · Fixed by #62
Closed

<effect> not re-running when it depends on input #59

vwong opened this issue Jul 10, 2024 · 0 comments · Fixed by #62

Comments

@vwong
Copy link

vwong commented Jul 10, 2024

Version: 0.7.5

    "@marko/run": "^0.4.5",
    "@marko/run-adapter-node": "^0.1.12",
    "@marko/runtime-tags": "^0.1.7",
    "@marko/tags-api-preview": "^0.7.5",
    "marko": "^5.35.5",

Component views are updated whenever its input is updated, but effects are only run once.

Expected Behavior

<effect> is re-run when its dependent values change

Actual Behavior

<effect> only runs once

Steps to Reproduce

https://markojs.com/playground/#NobwRAdghgtgpmAXGAlhAJnAHgOhlAJwGsB7MAGjAAcoAXACyTAHoBjEmKkiOCWgZ2ZpMufMTKV2fXrSYAeADZxazAG5QFAVzgBeAAzMAfAB0IcgEabatbgAJuAYQUpWRABQBKWyFvqtcWwBqQNsAX0NAgEY5ZktrbhMzVnoUBXRfDW0dP20jMFDycGh4JmTU9DxCUgpqOkZkNg4uHj5BMrTK8RqpWhl5OAAzAbhWWk9vWyl+EiUcBRIAczdjMAB5CAUAT1sCTQh+ewhWOBXyWzQqKxwcuC9Qo1M5dBRVQwBVKnQ6OHSoA4urJN6FAIAs4AcACQgAG0a6ZOChGLPV75AC6QA

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 a pull request may close this issue.

1 participant