Is it possible to create a custom lifecycle in svelte 3?

前端 未结 0 1422
攒了一身酷
攒了一身酷 2021-01-26 22:39

I need to perform a check (eg is login is true) before rendering a page. In vuejs there is the \'beforemounting\' event, but it does not exist in svelte. therefore I would like

相关标签:
回答
  • 消灭零回复
提交回复
热议问题