Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f252066
use fast invoke js extension methods in sync calls #9917
msynk Jun 7, 2026
a37c91e
resolve review comments
msynk Jun 7, 2026
66ddcee
resolve review comments II
msynk Jun 7, 2026
7dc0a74
fix tests
msynk Jun 7, 2026
e4413ef
fix fast invoke call
msynk Jun 7, 2026
3323b28
resolve local review comments
msynk Jun 9, 2026
f3caf7c
resovle local review findings
msynk Jun 9, 2026
da5449a
resolve review comments III
msynk Jun 9, 2026
4213ff7
resolve review comments IV
msynk Jun 9, 2026
183ea92
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jun 10, 2026
73d19e4
resolve review comments V
msynk Jun 10, 2026
7d1c17c
resolve local review findings
msynk Jun 13, 2026
d1b203b
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jun 13, 2026
ffe7f4c
fix build
msynk Jun 13, 2026
10da4a1
resolve review comments VI
msynk Jun 13, 2026
5fc51bb
resolve review comments VII
msynk Jun 14, 2026
a94b816
Merge branch '9917-blazorui-fastinvoke-js' of https://github.com/msyn…
msynk Jun 14, 2026
5a2c1ab
rename js util method
msynk Jun 14, 2026
1a0daf9
resolve local review findings II
msynk Jun 14, 2026
0c0a743
improve local review findings III
msynk Jun 14, 2026
d412b02
resolve review comments VIII
msynk Jun 14, 2026
706e07b
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jun 21, 2026
4cd6e71
resolve review comments IX
msynk Jun 21, 2026
c8d2a13
resolve review comments X
msynk Jun 21, 2026
ddf5ad6
resolve review comments XI
msynk Jun 21, 2026
6a96dc3
resolve review comments XII
msynk Jun 21, 2026
9bc302f
resolve review comments XIII
msynk Jun 21, 2026
0830e8f
resolve review comments XIV
msynk Jun 21, 2026
a209bb5
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jun 26, 2026
aae36e8
resolve review comments XV
msynk Jun 26, 2026
6cf6ec8
resolve review comments XVI
msynk Jun 26, 2026
28314ad
resolve review comments XVII
msynk Jun 26, 2026
7ea4211
resolve review commnets XVIII
msynk Jun 27, 2026
61c705c
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jun 27, 2026
d88bff2
resolve review comments XIX
msynk Jun 27, 2026
243d6ed
resovle review comments XX
msynk Jun 27, 2026
257a0d4
resolve review comments XXI
msynk Jun 27, 2026
67994da
resolve review comments XXII
msynk Jun 27, 2026
3a58247
Merge branch 'develop' into 9917-blazorui-fastinvoke-js
msynk Jul 24, 2026
069dd99
resolve local loop findings
msynk Jul 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ internal static class BitAppShellJsRuntimeExtensions
{
internal static ValueTask BitAppShellInitScroll(this IJSRuntime jsRuntime, ElementReference container, string url)
{
return jsRuntime.InvokeVoid("BitBlazorUI.AppShell.initScroll", container, url);
return jsRuntime.FastInvokeVoid("BitBlazorUI.AppShell.initScroll", container, url);
}

internal static ValueTask BitAppShellLocationChangedScroll(this IJSRuntime jsRuntime, string url)
{
return jsRuntime.InvokeVoid("BitBlazorUI.AppShell.locationChangedScroll", url);
return jsRuntime.FastInvokeVoid("BitBlazorUI.AppShell.locationChangedScroll", url);
}

internal static ValueTask BitAppShellAfterRenderScroll(this IJSRuntime jsRuntime, string url)
{
return jsRuntime.InvokeVoid("BitBlazorUI.AppShell.afterRenderScroll", url);
return jsRuntime.FastInvokeVoid("BitBlazorUI.AppShell.afterRenderScroll", url);
}

internal static ValueTask BitAppShellDisposeScroll(this IJSRuntime jsRuntime)
{
return jsRuntime.InvokeVoid("BitBlazorUI.AppShell.disposeScroll");
return jsRuntime.FastInvokeVoid("BitBlazorUI.AppShell.disposeScroll");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ namespace BitBlazorUI {
for (const entry of entries) {
if (entry.isIntersecting) {
observer.unobserve(lastElement);
await dotnetObj.invokeMethodAsync("Load");
try {
await dotnetObj.invokeMethodAsync("Load");
} catch (e) {
// Swallow the rejection so it doesn't surface as an unhandled promise rejection.
// The .NET object can already be disposed (component torn down) or the circuit gone.
console.error('BitBlazorUI.InfiniteScrolling.setup:', e);
}
}
}
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ public static ValueTask BitInfiniteScrollingSetup<T>(this IJSRuntime jsRuntime,
decimal? threshold,
DotNetObjectReference<BitInfiniteScrolling<T>> dotnetObj)
{
return jsRuntime.InvokeVoid("BitBlazorUI.InfiniteScrolling.setup", id, scrollerSelector, rootElement, lastElement, threshold, dotnetObj);
return jsRuntime.FastInvokeVoid("BitBlazorUI.InfiniteScrolling.setup", id, scrollerSelector, rootElement, lastElement, threshold, dotnetObj);
}

public static ValueTask BitInfiniteScrollingReobserve(this IJSRuntime jsRuntime,
string id,
ElementReference lastElement)
{
return jsRuntime.InvokeVoid("BitBlazorUI.InfiniteScrolling.reobserve", id, lastElement);
return jsRuntime.FastInvokeVoid("BitBlazorUI.InfiniteScrolling.reobserve", id, lastElement);
}

public static ValueTask BitInfiniteScrollingDispose(this IJSRuntime jsRuntime, string id)
{
return jsRuntime.InvokeVoid("BitBlazorUI.InfiniteScrolling.dispose", id);
return jsRuntime.FastInvokeVoid("BitBlazorUI.InfiniteScrolling.dispose", id);
Comment thread
msynk marked this conversation as resolved.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
if (_isOpen && _activeIndex >= 0 && _activeIndex != _lastScrolledIndex)
{
_lastScrolledIndex = _activeIndex;
await _js.BitExtrasScrollOptionIntoView(GetOptionId(_activeIndex));
await _js.BitExtrasScrollElementIntoView(GetOptionId(_activeIndex));
Comment thread
msynk marked this conversation as resolved.
}

await base.OnAfterRenderAsync(firstRender);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,11 @@ private async Task ToggleScroll(bool isOpen)

if (_scrollerElementOnOpen.HasValue)
{
_offsetTop = await _js.BitUtilsToggleOverflow(_scrollerElementOnOpen.Value, isOpen);
_offsetTop = await _js.BitUtilsToggleOverflow(_scrollerElementOnOpen.Value, isOpen) ?? 0;
}
else
{
_offsetTop = await _js.BitUtilsToggleOverflow(_scrollerSelectorOnOpen ?? "body", isOpen);
_offsetTop = await _js.BitUtilsToggleOverflow(_scrollerSelectorOnOpen ?? "body", isOpen) ?? 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ internal static class ExtrasJsRuntimeExtensions
{
internal static ValueTask BitExtrasApplyRootClasses(this IJSRuntime jsRuntime, List<string> cssClasses, Dictionary<string, string> cssVariables)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.applyRootClasses", cssClasses, cssVariables);
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.applyRootClasses", cssClasses, cssVariables);
}

internal static ValueTask BitExtrasGoToTop(this IJSRuntime jsRuntime, ElementReference element, BitScrollBehavior? behavior = null)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.goToTop", element, behavior?.ToString().ToLowerInvariant());
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.goToTop", element, behavior?.ToString().ToLowerInvariant());
}

internal static ValueTask BitExtrasScrollBy(this IJSRuntime jsRuntime, ElementReference element, decimal x, decimal y)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.scrollBy", element, x, y);
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.scrollBy", element, x, y);
}

public static ValueTask BitExtrasInitScripts(this IJSRuntime jsRuntime, IEnumerable<string> scripts, bool isModule = false)
Expand All @@ -29,16 +29,16 @@ public static ValueTask BitExtrasInitStylesheets(this IJSRuntime jsRuntime, IEnu

internal static ValueTask BitExtrasSetPreventKeys(this IJSRuntime jsRuntime, ElementReference element, string[] keys)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.setPreventKeys", element, keys);
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.setPreventKeys", element, keys);
}

internal static ValueTask BitExtrasDisposePreventKeys(this IJSRuntime jsRuntime, ElementReference element)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.disposePreventKeys", element);
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.disposePreventKeys", element);
}

internal static ValueTask BitExtrasScrollOptionIntoView(this IJSRuntime jsRuntime, string optionId)
internal static ValueTask BitExtrasScrollElementIntoView(this IJSRuntime jsRuntime, string elementId)
{
return jsRuntime.InvokeVoid("BitBlazorUI.Extras.scrollOptionIntoView", optionId);
return jsRuntime.FastInvokeVoid("BitBlazorUI.Extras.scrollElementIntoView", elementId);
}
}
Loading
Loading