Skip to content

Commit

Permalink
Added demo gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Alterio authored and Federico Alterio committed Dec 20, 2024
1 parent 79f3839 commit b8d6d35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<img src="./assets/demo.gif"/>


# Nuget https://www.nuget.org/packages/SignalsDotnet

# Angular Signals for .Net
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static IReadOnlySignal<T> Computed<T>(this IComputedSignalFactory @this,
return @this.Computed(func, () => new Optional<T>(fallbackValue()), configuration);
}

public static IReadOnlySignal<T?> Computed<T>(this IComputedSignalFactory @this, Func<T> func, ReadonlySignalConfigurationDelegate<T?>? configuration = null)
public static IReadOnlySignal<T> Computed<T>(this IComputedSignalFactory @this, Func<T> func, ReadonlySignalConfigurationDelegate<T?>? configuration = null)
{
return @this.Computed(func, static () => default, configuration);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ public record ReadonlySignalConfiguration<T>(IEqualityComparer<T> Comparer,
bool RaiseOnlyWhenChanged,
bool SubscribeWeakly)
{
public static ReadonlySignalConfiguration<T> Default { get; } = new(EqualityComparer<T>.Default, true, true);
public static ReadonlySignalConfiguration<T> Default { get; } = new(EqualityComparer<T>.Default, true, false);
}
Binary file added assets/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8d6d35

Please sign in to comment.