Skip to content

Changes in the examples source are not picked up correctly #1104

Open
@koegel

Description

@koegel

Describe the bug
When I change a schema for an example a rebuild is triggered but the change is not actually picked up.
This is probably because in index.tsx the import of the examples should be changed to:
import { getExamples } from '../../examples/src';
When I do that it basically works but now the full page will reload which resets the currently selected example in the drop-down. This makes the examples unusable for a demo.

To Reproduce
Run material examples: cd packages/material && npm run dev

Expected behavior
A build is triggered but the page does not fully reload so the last examples stays selected. Alternatively the examples app could remember the last selected example

Additional context
If a fix is more expensive than 4 hours, let us reconsider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions