Is it possible to switch Web Parts at runtime?

Toriyama 251 Reputation points

I have some web parts in my spfx project and I need to enable navigation between these web parts.
For each web part I will have a page and I need to do this page navigation in my spfx project.

At first I created several pages and in each one I added the respective web part.
I imagine it's not the best way.

Is it possible to change which web part is loaded in sharepoint framework?


SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,978 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 8,976 Reputation points

    Hi @Toriyama ,

    Thank you for the detailed description of this case. When I received the case, I searched a lot of documents did a lot of researches.

    As this requirement is complex ,I suggest you find solution partner to design this requirement.

    Thanks for your understanding and support.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.