ægteemil
Explore posts from servers`useAsyncState` equivalent in Nuxt
Hey. Up until now I've been using
useAsyncState
from VueUse when doing any CRUD work through a service of mine, and I'm curious if this is bad practice and if there's an equivalent function baked into Nuxt?
Today I'm doing something like this, which I'm looking to translate similarly to a Nuxt composable of some sort:
3 replies
❔ streaming an IAsyncEnumerable<string> from complex type
hey. i have a minimal api that looks like this:
it's registered like this:
but whenever i visit the url, the answer is not being streamed but rather returend as one large string. i tried making a dummy endpoint that works like expected, but im unsure how to modify the above code so it works. this is the test that worked for me:
13 replies
❔ Required select field missing validation error message on iOS
Hey. If I create a
required
select
field, and the select field is outside the current viewport (ie., if you've scrolled further down on the page), the browser doesn't jump to the required select and the validation message is missing.
I managed to find a recent stackoverflow question for exactly this, but there's no comments on it. Does anyone here have an idea for how to fix it?
https://stackoverflow.com/questions/75854715/html5-form-validation-with-select-field-on-ios-15-16-bug2 replies
❔ The foreign key property 'UserRole.RoleId1' was created in shadow state
I've expanded the default
IdentityUserRole
implementation for .NET identity like this:
And I've included the User
and Role
as navigation properties, which is now causing EF to write this when creating a migration:
The foreign key property 'UserRole.RoleId1' was created in shadow state because a conflicting property with the simple name 'RoleId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type
I'm not sure how to configure this properly and avoid the new foreign key property2 replies
Disable bootstrap multiselect options after selecting
Hi. I have a bootstrap
<select multiple/>
. When one is selected, I want to disable all other selections temporarily (while waiting for an API response), then enable them again after the response. I can't seem to find a good example of this6 replies