Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelschnurr authored and mrpmorris committed Aug 12, 2023
1 parent ec7b35b commit f54be56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Also, add the following line to the top of the razor file
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
```

*Note: This is required to ensure the component re-renders whenever its state changes. When you inherit from FluxorComponent the override of `OnInitialized()` will override the implementation of the FluxorComponent. Make sure you call `base.OnInitialized();` to register the StateHasChanged events correctly and to be notified about StateChanges. The override of OnInitializedAsync() will still override the ComponentBase implementation because Fluxor does not implement it on its own. An example for an `OnInitialized()` method when you are using `@inherits Fluxor.Blazor.Web.Components.FluxorComponent` would look like:
*Note: This is required to ensure the component re-renders whenever its state changes. When you inherit from FluxorComponent the override of `OnInitialized()` will override the implementation of the FluxorComponent. Make sure you call `base.OnInitialized();` to register the StateHasChanged events correctly and to be notified about StateChanges. The override of `OnInitializedAsync()` will still override the ComponentBase implementation because Fluxor does not implement it on its own. An example for an `OnInitialized()` method when you are using `@inherits Fluxor.Blazor.Web.Components.FluxorComponent` would look like:*

```
protected override void OnInitialized()
Expand Down

0 comments on commit f54be56

Please sign in to comment.