Skip to content

Commit

Permalink
Replace use of System.Reactive.Linq with a local object expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed Jan 21, 2023
1 parent c5dfa50 commit 9db7e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Avalonia.FuncUI/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module internal Utils =
module internal Extensions =
open Avalonia.Interactivity
open System
open System.Reactive.Linq

type IObservable<'a> with
member this.SubscribeWeakly(callback: 'a -> unit, target) =
Expand All @@ -45,4 +44,5 @@ module internal Extensions =
this.AddDisposableHandler(routedEvent, handler, routedEvent.RoutingStrategies)
)

Observable.Create(sub)
{ new IObservable<'args>
with member this.Subscribe(observer: IObserver<'args>) = sub.Invoke(observer) }
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<AvaloniaVersion>11.0.999-cibuild0028645-beta</AvaloniaVersion>
<AvaloniaVersion>11.0.999-cibuild0028680-beta</AvaloniaVersion>
<FuncUIVersion>0.6.0-preview5</FuncUIVersion>
</PropertyGroup>
</Project>

0 comments on commit 9db7e66

Please sign in to comment.