9,699 questions
1
vote
3
answers
79
views
Send Observable result to child component as Signal
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....
2
votes
2
answers
72
views
Updating a property in @Observable ViewModel trigger a redraw of all Views using it
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 ...
0
votes
1
answer
132
views
Why does SwiftUI re-render all ForEach items in view
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 ...
0
votes
1
answer
93
views
Sharing ViewModels in SwiftUI Navigation Using @Observable Without Recreating Them
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 ...
0
votes
0
answers
43
views
can skywalking OAP receive opentelemetry trace
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 ...
-2
votes
1
answer
73
views
How to assign a ref-type object to a nested observable property at runtime?
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: {
...
0
votes
1
answer
108
views
After DELETE callback works in same file but not in a service
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 ...
1
vote
0
answers
45
views
Legend state: create function of syncedCrud is not triggered when I set a new object in observable
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 ...
0
votes
2
answers
166
views
How do I correctly bind to / observe a non-observable object within SwiftUI?
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 ...
1
vote
1
answer
115
views
Should SwiftUI nested @Observable types update 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 ...
0
votes
2
answers
110
views
How to watch changes of an @Observable class in NSViewRepresentable
I have an @Observable class in the environment:
@Observable class AnnotationsCoordinator {
var annotations = [Annotation]()
}
In my parentView:
...
@State var annotationsCoordinator = ...
0
votes
0
answers
47
views
Observer saved models in laravel not all fields come
I have a model Ticket with fields.
public static function boot(): void
{
parent::boot();
self::observe(new TicketObserver());
}
Observer:
class TicketObserver
{
public function saved(...
0
votes
1
answer
471
views
iOS 26 UIKit and Observables with UITableViewController
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 ...
0
votes
1
answer
143
views
Mixing ReferenceFileDocument and @Observable
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 ...
0
votes
2
answers
71
views
How to display a conditional row number in a list
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 ...