Skip to content

Commit

Permalink
fix: state prop default value in Vue libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Mar 13, 2023
1 parent b10d38d commit 901c7d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue/src/SliceSimulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const SliceSimulator = {
props: {
state: {
type: [Function, Object] as PropType<SliceSimulatorProps["state"]>,
default: getDefaultProps().state,
default: () => getDefaultProps().state,
required: false,
},
zIndex: {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3/src/SliceSimulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const SliceSimulatorImpl = /*#__PURE__*/ defineComponent({
props: {
state: {
type: [Function, Object] as PropType<SliceSimulatorProps["state"]>,
default: getDefaultProps().state,
default: () => getDefaultProps().state,
required: false,
},
zIndex: {
Expand Down

0 comments on commit 901c7d2

Please sign in to comment.