Enhance --create-slice so that it automatically sets the slice name to avoid seeing <Index> in Vue Dev Tools

New slices created with $ prismic sm --create-slice show up as <Index> in Vue Dev Tools.
And the user needs to add name: "SliceName" within Index.vue to address this.

Since the --create-slice literally gathers the slice name as part of the process, the request is to improve the outputted template code so it auto sets a name based on the slice name provided.

See related question:

image

Hey @online,

I brought this up with the team today and they're already working on updating this template in the CLI:

Thanks.

1 Like

Awesome! Pass on big thanks to the team :smiley:

1 Like

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.