Props not available in life-cycle hooks in custom elements #4716
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
🐞 bug
Something isn't working
scope: custom elements
Version
3.2.19
Reproduction link
github.com
Steps to reproduce
General
Reproduction through the example
npm i --save
npm run build:wc
cd lab
then runnpx http-server
What is expected?
Expected props to be available in created/mounted/before mount hooks.
What is actually happening?
Props are undefined in setup/onMounted/onBeforeMount or created hooks
This is happening in the
defineCustomElement
API.Also, it says the attributes have not been passed in console warning, even though the attributes have been passed in.
The text was updated successfully, but these errors were encountered: