Melvin
Melvin
NNuxt
Created by Melvin on 12/18/2024 in #❓・help
Defining props through typescript requires full dev server restart on change
Does anyone know if I need to configure our Nuxt application differently when using Typescript to define the props of a component?
const props = withDefaults(defineProps<TableProps<T>>(), {
mayOrderColumns: false,
striped: false,
bordered: false,
hover: false,
});
const props = withDefaults(defineProps<TableProps<T>>(), {
mayOrderColumns: false,
striped: false,
bordered: false,
hover: false,
});
Now, when I add, rename or remove a prop in the TableProps interface I have to restart the whole dev server in order for the prop to be correctly noticed by Vue...
5 replies
NNuxt
Created by Melvin on 7/12/2024 in #❓・help
Courses or Extensive Guides on Stateful & Stateless Components
No description
1 replies