Created
June 29, 2021 07:29
-
-
Save Kcko/2f96f84f59e556abd0905e8292bf38e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<component-to-re-render :key="reloadMe" /> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
reloadMe: 0, | |
} | |
}; | |
methods: { | |
forceRerender() { this.reloadMe += 1; } | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment