# JournaledGrain&lt;TGrainState, TEventBase&gt;.OnTentativeStateChanged

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.EventSourcing/JournaledGrain.cs#L116)

```csharp
protected virtual void JournaledGrain<TGrainState, OnTentativeStateChanged()
```

Called whenever the tentative state may have changed due to local or remote events. 

Override this to react to changes of the state.
