9,699 questions
0
votes
0
answers
17
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
68
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
131
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
87
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
42
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
72
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
106
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
43
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
154
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
107
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
108
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
45
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
447
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
134
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
69
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 ...
0
votes
1
answer
124
views
Collective property observation with @Observable
@Observable
public class ExerciseSearchModel: RouteAware {
public var exercises: [Exercise] = []
public var searchQuery: String = ""
public var filters: ExerciseFilters = .init(...
0
votes
2
answers
156
views
SwiftUI @Observable not always updating view
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 ...
1
vote
2
answers
70
views
Rethrowing Errors When Using forkJoin
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'
}...
0
votes
3
answers
130
views
How to bind a property from ParentViewModel to a property of a ChildViewModel
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 ...
0
votes
0
answers
42
views
Dynamic image selection don't work with quarto website
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 ...
-1
votes
1
answer
94
views
Include dynamic local image in quarto dashboard using ojs [closed]
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 ...
1
vote
1
answer
217
views
Where can I find the place where Spring Boot kafka listener is setting the TraceId?
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'...
1
vote
1
answer
113
views
Why is this RxJS subscription never closed?
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 ...
1
vote
1
answer
95
views
Initial value not displayed on mat-select component using async pipe
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&...
1
vote
1
answer
125
views
Invalid parameter not satisfying: targetNode
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 ...
1
vote
0
answers
31
views
Python Reactivex and OpenAI -- Stream hangs?
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....
0
votes
1
answer
116
views
SwiftUI MVVM: Single View, 2 different ViewModels that conform to ObservableObject
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 ...
1
vote
1
answer
55
views
How to refresh and listen to the refreshed data inside one stream
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();
...
0
votes
1
answer
68
views
foo.subscribe with bar not always working
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 ...
1
vote
1
answer
93
views
Angular Query Tanstack Query cleanup logic
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: () =&...
1
vote
0
answers
61
views
Typings for the new native Observable API
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 ...
3
votes
0
answers
55
views
JavaFX Chained MappedBindings Repeated Executions
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 ...
0
votes
2
answers
57
views
Flutter GetX Obx not updating text on button press
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 ...
0
votes
0
answers
29
views
SwiftUI Table memory consumption using Observable objects
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 ...
1
vote
1
answer
33
views
Compare emitted values from the same Request
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 ...
0
votes
0
answers
84
views
Observable Event - how to wait for all async subscriptions to finish
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 ...
0
votes
0
answers
92
views
@AppStorage UserDefaults-bound variable isn't updated when UserDefaults value is changed
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 {
...
0
votes
1
answer
104
views
Does anyone know why Picker from my view file won't accept the binding version of an observable object property using @Observable
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 ...
0
votes
0
answers
59
views
How do I return the first object in a steam?
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 ...
1
vote
1
answer
51
views
RX operator to signal changes on an original observable emitting directly when possible
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) ...
0
votes
0
answers
23
views
Combine multiple observables based on id
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 (...
2
votes
1
answer
525
views
Not able to make firstValueFrom/async work with Angular
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 ...
1
vote
1
answer
199
views
Adding a Picker to change data in Observable class
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 ...
0
votes
1
answer
610
views
Why should I use opentelemetry-spring-boot-starter, and which method should be used instead? [closed]
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 ...
0
votes
1
answer
80
views
How to pass an array of pipable operators to pipe()?
[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 ...
1
vote
1
answer
90
views
Input Subject is empty in child component Angular 17
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 ...
0
votes
0
answers
34
views
@Published array property doesn't trigger the view to redraw [duplicate]
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 ...
0
votes
0
answers
86
views
Angular Tanstack Cached Observables are refreshing data and not using the cache causing problems
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 "...
1
vote
2
answers
70
views
Reactive streams (monix) operator combination for buffering for a timespan with overlapping elements
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, ...
0
votes
1
answer
127
views
Built-in observability capabilitis in WSO2 Micro Integrator
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 ...