Skip to main content
1 vote
3 answers
79 views

In my code I am trying to get the result from this observable: // Runs fine obtenerOfertaPorId(id: number): Observable<Oferta> { return this.http.get<Oferta>(`${this.apiUrl}${this....
Horacio García Magallanes's user avatar
2 votes
2 answers
72 views

I’m using the @Observable, @Bindable in SwiftUI. I have a simple ViewModel with two properties: @Observable final class AlarmLevelSetupViewModel { var displayedValueLevel1: Decimal = 1 var ...
Matvei Kozin's user avatar
0 votes
1 answer
132 views

I'm building a small SwiftUI view with a list of CardView items that use a shared @Binding from an @Observable model. When I tap one button, all the items in the ForEach are re-rendered. I'm trying to ...
miltenkot's user avatar
  • 339
0 votes
1 answer
93 views

I think the Environment approach would work, but my codebase is already quite large and everything is working fine. However, the initializer for each view model is called frequently. I’ll try to ...
lokredi's user avatar
  • 27
0 votes
0 answers
43 views

I have a question when using opentelemetry and skywalking. In java project, use opentelemetry to generate trace and span infomation, then I want to collect these trace to skywalking aop to analysis ...
user9515133's user avatar
-2 votes
1 answer
73 views

I'm using MobX v6+ and trying to assign a ref-type object to a nested property inside an observable structure. Here's the setup: import { observable } from 'mobx'; const foo = observable({ bar: { ...
mannok's user avatar
  • 1,867
0 votes
1 answer
108 views

I am making an Angular frontend and got really unexpected behaviour after an HTTP DELETE call. When in component code I call directly HttpClient.delete, it logs 'test'. If I call the delete in a ...
Xavier Weber's user avatar
1 vote
0 answers
45 views

Legend state version - 3.0.0-beta.31 I've setup my synced crud like this export const courses$ = observable<Record<number, Course>>( syncedCrud({ list: async () => { const ...
user24369851's user avatar
0 votes
2 answers
166 views

I have a view, TimeEditView, that edits an object of an Item class I made. The class does not conform to ObservableObject, since if it does, then it will cause issues with using GRDB. I am currently ...
bk24z's user avatar
  • 1
1 vote
1 answer
115 views

So I'm starting to work with @Observable macros instead of the old ObservedObject, and there's something I can't find an answer to: should an update of an observable object's (@Observable) property ...
Damien's user avatar
  • 3,407
0 votes
2 answers
110 views

I have an @Observable class in the environment: @Observable class AnnotationsCoordinator { var annotations = [Annotation]() } In my parentView: ... @State var annotationsCoordinator = ...
koen's user avatar
  • 5,862
0 votes
0 answers
47 views

I have a model Ticket with fields. public static function boot(): void { parent::boot(); self::observe(new TicketObserver()); } Observer: class TicketObserver { public function saved(...
KordDEM's user avatar
  • 209
0 votes
1 answer
471 views

In iOS 26, Observable got a new update where UIKit can refresh components itself when the dependent Observable object is changed. Unfortunately, I am not able to figure out why my ...
user19037628's user avatar
0 votes
1 answer
143 views

I have an app in which the data model is @Observable, and views see it through @Environment(dataModel.self) private var dataModel Since there are a large number of views, only some of which may need ...
Andromeda's user avatar
  • 683
0 votes
2 answers
71 views

I want to add a row number to a race list as shown above. Currently everyone is coming first. It's conditional as some people didn't finish (DNF). So first I set up an ObservableObject: class ...
Edward Hasted's user avatar

15 30 50 per page
1
2 3 4 5
647