79684941

Date: 2025-06-30 14:57:07
Score: 1
Natty:
Report link

So I figured it out. Thank you @HenkHolterman for your suggestion in the comments, that led to me finding the issue.

In my program.cs I had this line:

`builder.Services.AddSingleton(_ => databaseName);`

Turns out Blazor doesn't like it when you register strings as Singletons... I removed that line and it works fine now.

Cursor thought it would be useful to register the DB name as a singleton so it could easily be used throughout the application. And I failed to catch that.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-2): I figured it out
  • No code block (0.5):
  • User mentioned (1): @HenkHolterman
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: elloco999