Skip to content

Doing something in the component on the receipt of the action #278

Answered by americanslon
americanslon asked this question in Q&A
Discussion options

You must be logged in to vote

It does. But I think I am still missing a piece. Consider this though.

I have a DisplaySizeState (using blazor state) that keeps track of display size breakpoints.

Then I have a relatively complex Component that has a bunch of local variables that are meant to be set according to their own logic based on the display size breakpoints. These variables have no context outside this component and setting them all up in individual actions would just be clutter and bad separation imho.

How what I go about dealing with this? Are you saying I should be raising a INotification in the handler and then registering a notification handler in the Component? Isn't that kind of double pipelining (for the …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@americanslon
Comment options

@StevenTCramer
Comment options

Answer selected by americanslon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants