Skip to content

Commit

Permalink
Hooks state bug in Vue2
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Oct 2, 2022
1 parent d7d91a1 commit 0814a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/lib/store/template/stories/hooks.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const UseState = {
],
play: async ({ canvasElement }: PlayFunctionContext) => {
const button = await within(canvasElement).findByText('Clicked 0 times');
// FIXME: hooks state does not trigger a re-render in vue2
if (globalThis.storybookRenderer === 'vue') return;

await userEvent.click(button);
await within(canvasElement).findByText('Clicked 1 times');
Expand Down

0 comments on commit 0814a13

Please sign in to comment.