Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Skip router render meanwhile there is no outlet #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

abdonrd
Copy link
Member

@abdonrd abdonrd commented Oct 14, 2020

Could fix vaadin/router#495

@abdonrd abdonrd requested a review from Tansito October 14, 2020 09:54
Copy link
Member Author

@abdonrd abdonrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friendly ping to @web-padawan!

},
...routes
],
true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First we skip the router render.


export const attachRouter = (outlet: Node | null): void => {
router.setOutlet(outlet);
router.render(window.location, true);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we force the first render when attach the router.

@web-padawan
Copy link
Contributor

Thanks, now the issue seems more clear to me. I will ask if anyone from our team would have time to look into it.

@abdonrd
Copy link
Member Author

abdonrd commented Oct 14, 2020

Great, thanks @web-padawan!

@abdonrd
Copy link
Member Author

abdonrd commented Oct 16, 2020

@web-padawan have you gotten any response? Thanks in advance!

@web-padawan
Copy link
Contributor

Unfortunately the team is busy with other priorities at the moment. Also, vaadin-router is now part of the Vaadin 15+ which does not support IE11 and old Edge anymore, so we might re-evaluate browser support for the router in future.

I will dedicate some time to investigate this issue on my own, and hopefully come up with a fix for it.

@abdonrd
Copy link
Member Author

abdonrd commented Oct 19, 2020

Ok, thanks @web-padawan!

@abdonrd
Copy link
Member Author

abdonrd commented Oct 27, 2020

@web-padawan have you had a chance to investigate it?

@web-padawan
Copy link
Contributor

Not yet, unfortunately. Sorry about that.
I've been out of context for a while, and will need kind of mental switch to dig into @vaadin/router internals again 🙂

@Tansito
Copy link
Contributor

Tansito commented Mar 12, 2021

We don't know if you had time to check something about the proposed solution, @web-padawan thanks!

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

Successfully merging this pull request may close these issues.

Error: Exception thrown and not caught
3 participants