Skip to content

Commit

Permalink
chore: improve docs page performance by only showing default example (#…
Browse files Browse the repository at this point in the history
…1898)

There is a noticeable lag on when typing into the input of the
[`OnyxInput`](https://storybook.onyx.schwarz/?path=/docs/form-input--docs).

### Cause
I am concluding that the issue lie with Storybook:
- I performed a cursory performance check using the Vue Dev Tools and
there are no apparent performance issues with our Vue components.
- The Storybook input elements are also affected

### Mitigation
I removed all, but the Default Story example from the docs page.
This should mitigate bigger lagging issues for now.
  • Loading branch information
JoCa96 authored Sep 26, 2024
1 parent 3b0fd69 commit 21e5f99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions apps/docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ const config: StorybookConfig = {
core: {
disableTelemetry: true,
},
docs: {
autodocs: true,
},
};

export default config;
6 changes: 0 additions & 6 deletions packages/sit-onyx/.storybook/docs-template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,3 @@ Below you can find all available properties, events and slots of the component.

<div style={{ marginTop: "3rem" }}></div>
</section>

## Examples

_Below you can find various pre-defined variations of the component for different use cases._

<Stories title="" />

0 comments on commit 21e5f99

Please sign in to comment.