-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Navigation between Single WebPart App Pages does not refresh WebPart content #6246
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Hi salascz, I am able to reproduce this error with the demo webpart: I suspect this is a bug and caused by a special mechanism on Modern page : when a hyperlink is clicked, navigation to the page is achieved via a page router to avoid full refresh of the screen. Baker Kong |
Hi @kongmengfei, Is there a way, how to get it fixed? Thanks |
@salascz just ran into this issue myself. Were you able to find a workaround? |
Yes, I created two separate webparts (one for each configuration) and reference the same React component. Not a good solution for large projects as each webpart increase the build time... |
Also kind of a cruddy solution but I just went up the dom and grabbed the site nav elements and added the data-interception=off attribute to each. Hopefully this is resolved before this comes back to bite me. |
Hello @salascz - sorry for the long delay. Could you please check if the bug is still appearing for you? |
Hello, Here is my xml template:
|
Hi @salascz - you need to use a webpart that supports being in a single webpart app page - none of the out of the box webparts support this. If you have a custom webpart that supports the single webpart app page, and use the same process, does it work or not? Also - if you create the page manually (not using the PNP provisioning) does it work (we are unable to repro manually)? |
Hi @patmill, I can confirm it does work for pages created manually. Looks like some kind of configuration issue on our side. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Category
Describe the bug
I have a SPFx WebPart. The WebPart is placed on two Single WebPart App Pages (with different configuration for each page). Links to those pages are included to site navigation.
The WebPart is not refreshed if user click on the navigation link. (The page url and page title is updated correctly)
Steps to reproduce
The issue might be reproduced with standard WebPart (e.g. Hero)
Expected behavior
Environment details (development & target environment)
The text was updated successfully, but these errors were encountered: