Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 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
68 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
131 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
87 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
42 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
72 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
106 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
43 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
154 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 ...
BradsTheDeveloper's user avatar
1 vote
1 answer
107 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,397
0 votes
2 answers
108 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
45 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
447 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
134 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
69 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
0 votes
1 answer
124 views

@Observable public class ExerciseSearchModel: RouteAware { public var exercises: [Exercise] = [] public var searchQuery: String = "" public var filters: ExerciseFilters = .init(...
Andrew's user avatar
  • 49.8k
0 votes
2 answers
156 views

I'm slowly going crazy because my view doesn't always update, and I can't figure out what's causing the problem. I've added @MainActor for network calls. The picker on CreateInvoiceDetails view is ...
lokredi's user avatar
  • 27
1 vote
2 answers
70 views

I'm working on an Angular (v18) SPA app. I have an API service with a get call: public get(route: string, params?: HttpParams): Observable<any> { const headers = { method: 'GET' }...
MRichards's user avatar
  • 145
0 votes
3 answers
130 views

I want to know what's the most straightforward way to bind a property (age) from a parent ViewModel (ProfileViewModel) to a child ViewModel (AgePickerViewModel) using the @Observable macro. I have a ...
Joba's user avatar
  • 940
0 votes
0 answers
42 views

I have a quarto dashboard where the user can select an image from a dropdown and it will appear instantly. I use observable js for this, and I recently got some help to make it work and there is a MWE ...
AndersK's user avatar
  • 51
-1 votes
1 answer
94 views

I have a quarto dashboard where I want the user to be able to choose a local image (or one stored in the GitHub repo where the dashboard is located) and then have that image displayed. I cant use ...
AndersK's user avatar
  • 51
1 vote
1 answer
217 views

I'm searching for the file where Spring Boot Kafka listener is placing en deciding if the TraceId is collected from the header or it has to create a new one. I have debugged now for many hours but can'...
Remco Cats's user avatar
1 vote
1 answer
113 views

I have suspected memory leaks and stale RxJS subscriptions for a while in corporate software. I decided to investigate by writing the snippet below. It's very simple. First, it loads RxJS. Second, it ...
Robin Dos Anjos's user avatar
1 vote
1 answer
95 views

I'm trying to use a material select component that gets its values through an Observable with async pipe. template: <mat-form-field> <mat-select value="selectedOption$ | async&...
Watttttt's user avatar
1 vote
1 answer
125 views

I'm experiencing a crash on an iOS app that I can't find a reason to exist at all. The app launches I tap anywhere on the screen Crash I'm using SwiftUI and have an @Observable object, inside this ...
Vicente Garcia's user avatar
1 vote
0 answers
31 views

Please see my code block below. In order to run it, I do the following. When I run the following code, things print as expected, and the process exits as expected. stream = await client....
Monarch Wadia's user avatar
0 votes
1 answer
116 views

I'm providing an extremely simplified example to illustrate my point: A single SwiftUI View displaying the same properties of a ViewModel 2 ViewModels which are ObservableObject subclasses The ...
Richard Topchii's user avatar
1 vote
1 answer
55 views

The important part of my code looks somewhat like this: data$:Observable = this.dataRefresh$.pipe(switchMap(() => this.http.get('url')), shareReplay()); dataRefresh$:Subject = new Subject(); ...
Mirz's user avatar
  • 33
0 votes
1 answer
68 views

Imagine we have foo$ and bar$ and both of them are BehaviorSubjects. I have a bug in angular that sometimes in some cases foo$.subscribe(bar$) works fine, in most casses actually. But sometimes I have ...
Muhamed Karajic's user avatar
1 vote
1 answer
93 views

I'm using Angular 18 with TanStack Angular Query and have a question about handling observables in the queryFn. In my queryFn, I'm using lastValueFrom() with an HTTP request like this: queryFn: () =&...
Eternal Sunshine's user avatar
1 vote
0 answers
61 views

There is a new Observable API proposal over at the WICG. The API was behind a flag on chromium for over a year and the feature is expected to be shipped in M135. Do you know any package that might ...
Matthieu Riegler's user avatar
3 votes
0 answers
55 views

I noticed that some of my mappings were being executed multiple times and decided to investigate. I found out that chaining multiple ObservableValue#map calls, then adding a listener to the result ...
Alver415's user avatar
0 votes
2 answers
57 views

Below I have a very simple GetX project that should basically load some data on button press asynchronously. However, I would like the button to change from 'PRESS ME' to 'LOADING' whilst the data is ...
Pinocchio's user avatar
0 votes
0 answers
29 views

I'm trying to implement a SwiftUI Table and users would be able to add/define items (rows) and properties (columns). I expect there to be large amounts of items. For persistence, I'm hoping to use ...
kiu's user avatar
  • 21
1 vote
1 answer
33 views

In my angular component I fetch a list of objects via http-Request and render that data in a List and set some additional configdata based on that list. In the end I have a "proceed" button ...
Sergej Bjakow's user avatar
0 votes
0 answers
84 views

Let's say I have a singleton dispatcher with a property OnSubmit that should be consumed by multiple components. The components provide async handlers for the OnSubmit event. The goal is to await the ...
Igor Skomorokh's user avatar
0 votes
0 answers
92 views

I have a SwiftUI View with a property that is bound to @AppStorage with UserDefaults: struct GeneralSettingsView: View { @State var model: SettingsProtocol var body: some View { ...
4ntoine's user avatar
  • 20.6k
0 votes
1 answer
104 views

I am not entire sure why using the @Observable tag does not work the same as using the 'old' way which is using @Published and ObservableObject and @StateObject. I am just curious why that wouldn't ...
Ansilans's user avatar
0 votes
0 answers
59 views

I have an event that fires calling another service which will create an organization. The organization is returned as an observable. I then use swithMap so I can get the organization id and use it to ...
Aaron Balthaser's user avatar
1 vote
1 answer
51 views

I'm struggling to write some operator/method generating an observable that would transform an initial observable into another one but with some kind of back pressure control (like Throttle operator) ...
Remiab's user avatar
  • 13
0 votes
0 answers
23 views

Let's say I have two observables Observable<A> with values like (1, Ametadata), (2, Ametadata) 1, 2 ... are ids and Ametadata is additional attributes of A Observable<B> with values like (...
hpkancha's user avatar
2 votes
1 answer
525 views

I'm trying to create an Angular (v19) app, which basically consumes an API and uses the responses to render the app's UIs. A pretty standard scenario. The only thing more “audacious” is that I would ...
Bob Rivers's user avatar
  • 5,499
1 vote
1 answer
199 views

I am trying to change a value that is stored in class through a custom structure using a picker. I am trying to make an app that lists course name and grade. The picker is in a HStack with a name. I ...
Atharv Salokhe's user avatar
0 votes
1 answer
610 views

I have a question related to integrating Spring Boot with OpenTelemetry. I am planning to use the dependency opentelemetry-spring-boot-starter. My questions are: When should I use this approach? Why ...
Aref's user avatar
  • 21
0 votes
1 answer
80 views

[Angular 12]I have a service with a method, handleFormControlChanges, which accepts, a formControl, a destroy subject, a method and an array of pipable operators (e.g., delay), and I would like to ...
Yegor Petrov's user avatar
1 vote
1 answer
90 views

I am trying to pass data from a parent to its child component in Angular 17. The data is retrieved from the back-end through an API that gets an array of items. In my parent component, items$ is a ...
Ems's user avatar
  • 202
0 votes
0 answers
34 views

I have a SwiftUI view structure where the parent view uses a @StateObject for its LeaveViewModel, and this view model contains a @Published array. When I modify an existing element in the array, the ...
Ronnie Pickering's user avatar
0 votes
0 answers
86 views

I'll keep it short as possible >< -I have a left hand menu with items that can be expanded/collapsed. This is dependent on "getAll()" and works as expected. -When I incorporated "...
NeuralCode's user avatar
1 vote
2 answers
70 views

I have an Observable[T] which emits continuously and I want an Observable[List[T]] which emits the last elements in a specified duration for each element the source emits. Example Observable. range(0, ...
Giuliano De Sabata's user avatar
0 votes
1 answer
127 views

I am using WSO2 Micro Integrator (mi) 4.2 and for the sake of Application Perf. Monitoring (APM), I need to export the following: Metrics of the JVM running the wso2 mi 4.2 application. The ...
pSycHEdELia's user avatar

1
2 3 4 5
194