Abhijeet
Abhijeet

Reputation: 13886

Blazor State Management - Factor out the state preservation to a common location

enter image description here

I'm trying to understand common location for state preservation from Blazor Official Doc.

enter image description here

I have tried to define this into new component like above in my project, but variable is undefined.

How Counter.razor and CounterStateProvider.razor will be associated together?

enter image description here

Upvotes: 2

Views: 222

Answers (1)

Abhijeet
Abhijeet

Reputation: 13886

To summarize comments to help some on in future.

CurrentCount is the property in defined in above class.

Upvotes: 1

Related Questions