Skip to content

Commit

Permalink
Fix stack overflow on dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Aug 5, 2020
1 parent 95868cb commit 6295d34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/StateMonoBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Dispatcher<TState> Dispatcher {
public class View : View<TState> {
protected override TState State => Singleton?.State;
protected override TState LastState => Singleton?.LastState;
protected override Dispatcher<TState> Dispatcher => Dispatcher;
protected override Dispatcher<TState> Dispatcher => Singleton?.Dispatcher;
}

public abstract class RepeatView<T> : RepeatView<TState, T> {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.neilsarkar.violetui",
"version": "0.1.64",
"version": "0.1.65",
"displayName": "Violet UI",
"description": "State-based rendering with live updates in the Unity Editor",
"unity": "2019.4",
Expand Down

0 comments on commit 6295d34

Please sign in to comment.