Skip to content

Do we need to consider ShouldRender() for custom modules? #4128

Answered by sbwalker
markdav-is asked this question in Q&A
Discussion options

You must be logged in to vote

Long answer....

Blazor is a SPA framework where each component is a stateless chunk of UI on the page. State is communicated to components in various ways - each with their own specific behavior. Oqtane leverages a cascading parameter called PageState to pass state from the router to all nested components in the UI hierarchy. Whenever a cascading parameter is changed, all components which reference it are immediately notified (note this is a Blazor behavior - not an Oqtane behavior). This results in components being re-rendered to reflect the latest state. This all makes sense in theory... however in practice it behaves a bit different than expected.

In a default Oqtane installation it wi…

Replies: 9 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@markdav-is
Comment options

Answer selected by markdav-is
Comment options

You must be logged in to vote
2 replies
@sbwalker
Comment options

@leigh-pointer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sbwalker
Comment options

@vnetonline
Comment options

Comment options

You must be logged in to vote
1 reply
@vnetonline
Comment options

Comment options

You must be logged in to vote
3 replies
@sbwalker
Comment options

@sbwalker
Comment options

@vnetonline
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vnetonline
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants