diff options
author | jacalvar <jacalvar@microsoft.com> | 2022-07-07 21:58:18 +0300 |
---|---|---|
committer | jacalvar <jacalvar@microsoft.com> | 2022-07-07 21:58:18 +0300 |
commit | 2b651801cf4b13abefa94f8aa63e90cc37a7c566 (patch) | |
tree | 79c577f812c6b095e7ee7b7293f99928c548a3da | |
parent | 6c24a1aafa2f8b5dca0d1f6133a861438acc68b6 (diff) |
Cleanup APIjaviercn/add-support-for-history-state
3 files changed, 4 insertions, 6 deletions
diff --git a/src/Components/Components/src/PublicAPI.Unshipped.txt b/src/Components/Components/src/PublicAPI.Unshipped.txt index bff994adad..1007b29acd 100644 --- a/src/Components/Components/src/PublicAPI.Unshipped.txt +++ b/src/Components/Components/src/PublicAPI.Unshipped.txt @@ -7,7 +7,6 @@ Microsoft.AspNetCore.Components.NavigationOptions.State.init -> void Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent) -> void Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.LocationChangedEventArgs(string! location, string? state, bool isNavigationIntercepted) -> void Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.State.get -> string? -Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs.State.set -> void static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback<T>(object! receiver, Microsoft.AspNetCore.Components.EventCallback<T> callback, T value) -> Microsoft.AspNetCore.Components.EventCallback<T> static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(System.Action! callback) -> System.Threading.Tasks.Task! static Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(System.Func<System.Threading.Tasks.Task!>! callback) -> System.Threading.Tasks.Task! diff --git a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs index e1a9a30a9b..fc600fc12c 100644 --- a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs +++ b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs @@ -42,7 +42,7 @@ public class LocationChangedEventArgs : EventArgs public bool IsNavigationIntercepted { get; } /// <summary> - /// Gets or sets the state associated with the current history entry. + /// Gets the state associated with the current history entry. /// </summary> - public string? State { get; set; } + public string? State { get; } } diff --git a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs index 5a5697b77e..ef352db431 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs @@ -17,10 +17,9 @@ public static class JSInteropMethods /// <summary> /// For framework use only. /// </summary> + [Obsolete("This API is for framework use only and is no longer used in the current version")] public static void NotifyLocationChanged(string uri, bool isInterceptedLink) - { - WebAssemblyNavigationManager.Instance.SetLocation(uri, null, isInterceptedLink); - } + => WebAssemblyNavigationManager.Instance.SetLocation(uri, null, isInterceptedLink); /// <summary> /// For framework use only. |