Subscribe on changes!

Why slots with dynamic names written in camelCase format don't work

avatar
Sep 13th 2021

Version

3.2.11

Reproduction link

codepen.io

Steps to reproduce

if I write the dynamic name as dynamicSlotName:'header' in my data property :

    data() {
      return {
        dynamicSlotName: "header"
      }
    }

What is expected?

Render the header layout

What is actually happening?

it gives me the following error

Property "dynamicslotname" was accessed during render but is not defined on instance


if I write property like dynamicslotname it works