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

Support Enhanced Navigation #6

Open
NielsPilgaard opened this issue Dec 14, 2023 · 2 comments
Open

Support Enhanced Navigation #6

NielsPilgaard opened this issue Dec 14, 2023 · 2 comments

Comments

@NielsPilgaard
Copy link
Contributor

Hi 👋

At the moment, Giscus Blazor does not update which discussion it's showing, when the current page is changed using client-side navigation, or server-side enhanced navigation.

Using forceLoad works:

NavigationManager.NavigateTo("/new-url", forceLoad: true)

but that's not as smooth of a user experience as the alternatives, since it's a full page reload and takes longer to execute.

I've tried using BlazorPageScript to run Giscus Blazor on page change, but I couldn't get it to work since I don't know which javascript to actually use.

Do you have any ideas as to what I could do to make it work? :)

@Jisu-Woniu
Copy link
Owner

Have you checked out this link? I found this from giscus-components' repo, but I did not dive in, since I am a little busy recently.

If you work it out, I would be glad to merge it into this repo.

@NielsPilgaard
Copy link
Contributor Author

This could potentially work: https://github.com/giscus/giscus/blob/main/ADVANCED-USAGE.md#parent-to-giscus-message-events

I'll try it out once I find some free time 😄

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

No branches or pull requests

2 participants