You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our app was initially created with the Blazor Server App .NET 7 template in VisualStudio. We recently followed the guide to update it to the .NET 8 Blazor Web App template.
It looks like at least some Nimble EventCallbacks are now not getting invoked. Two examples are the NimbleBannerOpenChanged, and the NimbleMenuButtonToggle.
💻 Repro or Code Sample
Use VisualStudio to create a new Blazor Web App using the .NET 8 template.
Add the NimbleBlazor package (18.0.0 is currently the latest) and required Nimble script / fonts.
Put a NimbleBanner component with an OpenChanged callback on a page, and with Open="true".
Put anything in the callback method implementation so you can tell when it's invoked.
Run the app and dismiss the banner.
The callback is not invoked.
If you follow the same instructions, but use the Blazor Server App template with .NET 6 or .NET 7, then the callback is invoked.
🤔 Expected Behavior
The EventCallback should get invoked.
😯 Current Behavior
The EventCallback is not invoked.
💁 Possible Solution
Official Nimble .NET 8 support. I'm not sure exactly what difference is causing the behavior change.
🔦 Context
Since updating our app to use the .NET 8 template, a few pieces of functionality that were relying on callbacks are now not working.
We didn't have a specific reason for updating to the .NET 8 template, so we'll need to evaluate what all the callback-related bugs are and whether we should revert the update and / or wait for fixes to this bug.
🌍 Your Environment
OS & Device: Windows PC
Browser: any
The text was updated successfully, but these errors were encountered:
NimbleBlazor relies on the afterStarted callback which is now a "classic"/deprecated initializer, which is not called by default.
Blazor provides a way to opt back into the classic initialization behavior, and that looks like a workaround to this issue:
Once we update Nimble Blazor to target .NET 8, we'll update our JS initialization code to use the new methods, so it's probably best to wait for that. (HLD for that work)
🐛 Bug Report
Our app was initially created with the Blazor Server App .NET 7 template in VisualStudio. We recently followed the guide to update it to the .NET 8 Blazor Web App template.
It looks like at least some Nimble
EventCallback
s are now not getting invoked. Two examples are theNimbleBanner
OpenChanged
, and theNimbleMenuButton
Toggle
.💻 Repro or Code Sample
NimbleBlazor
package (18.0.0
is currently the latest) and required Nimble script / fonts.NimbleBanner
component with anOpenChanged
callback on a page, and withOpen="true"
.🤔 Expected Behavior
The
EventCallback
should get invoked.😯 Current Behavior
The
EventCallback
is not invoked.💁 Possible Solution
Official Nimble .NET 8 support. I'm not sure exactly what difference is causing the behavior change.
🔦 Context
Since updating our app to use the .NET 8 template, a few pieces of functionality that were relying on callbacks are now not working.
We didn't have a specific reason for updating to the .NET 8 template, so we'll need to evaluate what all the callback-related bugs are and whether we should revert the update and / or wait for fixes to this bug.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: