Skip to content

Is there a Programmatic Alternative to <Fluxor.Blazor.Web.StoreInitializer /> in App.razor? #365

Answered by mrpmorris
RodDaSilvaWCO asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

That component does the following

  1. Executes any javascript that middlware need. At the moment this is only ReduxDevTools, so most likely won't be an issue if you skip that part
  2. Hooks the into Store.UnhandledException event
  3. Awaits Store.InitializeAsync

I think you should be fine injecting IStore and only performing step 3.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mrpmorris
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
Converted from issue

This discussion was converted from issue #363 on November 25, 2022 09:22.