Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route slots are multiplying after each route change #173

Closed
MichaelSimek opened this issue Nov 6, 2023 · 1 comment
Closed

Route slots are multiplying after each route change #173

MichaelSimek opened this issue Nov 6, 2023 · 1 comment

Comments

@MichaelSimek
Copy link

Since 9.0.0 the content of one of my routes keeps adding the slot to the dom everytime route change is triggered.

This is the route element.

        <route class="header" path="/:p+">
            <header class="cat-header">
                <button class="back" onclick="history.back()">Back</button>
                <div>
                    <button class="search"></button>
                </div>

                <div class="cat-image"></div>

            </header>
        </route>

image
image

You can see that after every change of route the header is being added again.

@GianlucaGuarini
Copy link
Member

Thank you for reporting this issue. It has been fixed in @riotjs/route@9.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants