You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to know how it is possible to use beforeDestroy in the setup () component.
I need to delete some data when I leave a particular section.
When I define beforeDestroy() as:
It shows me an error that I cannot use beforeDestroy within the setup() component.
If there is an equivalent to beforeDestroy() and can you tell me or help how to make it work, I will appreciate it.
<script>
import {value,onCreated,watch} from 'vue-function-api';
export default{name: "Section",setup(){beforeDestroy(){}return{}}};</script>