Click in order · Vue.js course · Module 4: Computed & Watch
watchEffect with cleanup syntax
Arrange watchEffect with onCleanup in the correct order:
Items to click
- watchEffect(
- fetch(url)
- (onCleanup) => {
- onCleanup(() => controller.abort()) })
You can check the correct answer by solving this task in the CodeWorlds game.