Observable Questions
Ad
Firebase: Result from getIdToken() results in Error: Argument of type 'Promise' is not assignable to parameter of type 'string'
I get the following error when i try to pass the authorized idtoken as a string when making http requests to firebase:
Typescript: error TS2740: Type '{}' is missing the following properties from type 'Product[]': length, pop, push, concat, and 26 more
Using angular 4, i am getting array list from firebase db inside an observable. how to change the type of an observable to an array or vice versa
React Redux missing in props validation and recommended pattern for initialising container from an external API using redux-observable
I am trying to learn how to use react with redux in a typescript environment. i am using the patterns suggested at
Angular: wait for Observable inside a function before returning result
I need help with the following function: getuser(uuid: string): observable<wowuserdatamodel> { let user:
Angular7 child1 to parent - parent to child2 communication error
Just an example for my issue:- parent have child1 and child2. i am showing a list of months in an array, onload of child2. on
Angular 2 md-select don't bind selected value when populate from Observable array
I have angular2 reactive form which contains md-select to make user select doctor from firebase md-select works fine when data exists before
Angular: data only available in subscribe method, but not outside
What is the best way to pass data from an http request to another component. i have programmed a user service here, which receives information
Quering data from Firestore as observable
I am using this request to get my documents from firestore asynchronously. during an operation (delete for example) the list of my
How to set a firestore reference async in service depening on getting UID from other service?
Basically i want to do this. projectservice: privatefolderref =
Why is ObservableCollection updating UI on Android but not iOS?[Pendent]
I have a cross-platform app on xamarin forms for android and ios. in some view, i am using an observablecollection as source of a
Ad
Show displayName in Angular 8 from Firebase
I am having a problem displaying the "displayname" property from my component.ts file (for testing purposes in console.log), yet it works fine
Actions must be plain objects. Use custom middleware for async actions. react-redux
I am new with reac-redux, i am trying to get collection from firestore but now when firebase returns the data and i try to map the info to storage
How to format RxJS redux observeable epic to do many things?
This is my epic at the moment export const listentonewdataadded = (action$, store) => action$.pipe(
Unable to create call adapter for io.reactivex.Single
I want to conncet to server with retrofit and rxjava.it works when i used call and everything is good.but when try to use rxjava ,its getsinto
Angular 9 Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays
I am using async pipe in my template for an observable: applicants$: observable<userprofile[]>; ngoninit() {
Angular ngrx: assign a readonly property
I'm building an angular app with ngrx and i'm encountering a problem. here it is: in the oninit, i launch dispatch and selector for
Observable map property based on another observable
Lets say i have an observable that emits employees. $employees i wish to manipulate a sub property of each employee
How to use behaviorSubject when removing item from array
I have angular 8 application. and i have two components, like child - parent relationship. so i remove the item from the child, but then
RxJS - Create Auto-Complete Observable That First Returns Data From Cache And Then From Server
I found this article that explains how i can use rxjs to create an observable for auto-complete:
Returning observable inside subscribe method
I'm trying to write a service that accesses the spotify api. therefore this services needs an authorization bearer token. it should get this from
RxJava2 Android onNext is called even after disposing compositeDisposable onDestroy
Following is my code for adding observable to composite disposable
Ad
Angularfire conditional logic in template with authState observable delay in template rendering
Hi i am building an angular application with @angular/fire. in the auth service i have a user observable which gets the value of the current user,
Multiple API call with Observable.zip
I develop a rss reader android app. i want to api call more than one but i can't. my code is here, what am i doing wrong ? note;
How to emit/merge another observable inside RXJS retryWhen
I have an observable for api request, basically i added retrywhen in the event connection failed/error. while doing so i want to
Transform an observable to an array
I want to transform an observable into a table. i can display a table by searching on the zero line but i would like to browse all the rows to
Mergemap Angular + firestore collection
I'm starting to use angular and i would need help to solve this problem. i'm using a firestore database.
RxJs mergeAll(), scan() coninutes to accumulate
I have this bit of code that is intended to accumulate features as they are added ot the features$$ observable. private
How to emit two actions for ajax response in redux observable epic
I have redux observable epic that maps ajax response to single action ("createsuccess"): export const create = (action$)
How can we access a non-observable dataset from Firebase's Firestore?
Background most examples of fetching data from firebase's firestore via angularfire: (a) show the use of
dispatch multiple actions with redux-observable
After the user clicks the login button on a form, i want to dispatch an action which will trigger a spinner on the form while the request
how to fix this message angular observable
I have a little probleme, i use the node(express) and angular, i want display all classes in angular but it's show an error like this
How to deal with cascading observable
I have difficulties to grasp the way things works with observables. i'm developing an api that retrieves a "person" who'll have multiple
Ad
Observable Notify Multiple variables change
How i can notify on multiple variables update? is there any method to detect and separatenotifyobservers? public class
How to search array items in Ionic 3?
Please i'm using a model name resproject and variable resproject : observable ; this is my code : import { component }
Reduce reading documents in firebase firestore collection
I have web app,developed using angular 6 and google-clod-firestore,which take order from customer to deliver books;currently it have two
Observable is returning each letter of string separately
I have some code that sends data to firebase, waits for a response, then displays the result to the user: sendrequest (data):
RXJS, How to watch mouse and keyboard and do something when when none has been used for some time?
I need run a function if neither the mouse has moved, nor the keyboard has been touched for 1mn. i tried the code below but doesn't seem to
RxJava2 query SQLite
In my android app i would like to use rxjava2 instead of asynctasks to query my local sqlite db. i don't want to use room or
Angular & Cloud Firestore Observable Does Not Complete
I want to show a message or hide spinner when the observable is complete but firestore observable is endless i guess. in other words it's "hot" as
Handling HTTP redirection status codes
I'm trying to handle http redirection status codes (e.g. 302 redirect when the session timed out) and i don't know if there is a generic way to
Angular - Accessing ngrx store in a 'then' block
I am using angular6 and cloud firestore (not realtime database). i have a service which holds a function which adds a document to a collection and
add an additional parameter to an observable response
I have the following code getfileasync(fieldfiles: array<filefields>): observable<array<uploadfile>> {
ERROR TypeError: Cannot read property '1' of null at Object.eval [as updateDirectives]
I am facing with an error which is unclear for me. i am able to see the data to edit but everytime it is coming an error like this. i have tried
Ad
Return observable from firebase onchange
How on earth do you return an observable of (ex type user) from an on-change function in firebase. normally you can just do a .then but this
Uncaught exception inside onNext being propagated to RxJava global exception handler
Following is a simplified example of a problem that i'm trying to tackle. in my code base, the problem is occurring with a publishsubject but
Combining observables in series & parallel to fetch data from multiple APIs
I am trying to check the validity of a function i have written in typescript, in congruence with rxjs observables, that fetches some bookings from
Redux observable epic takes few actions in a row but return only last
I have an epic which should proceed few actions of type verify_insurance_request in a row. everything works good inside switchmap block (all items
trigger function when mobx observable is changed
I currently trying to create a function which should be triggered in my react component when my observable in my store is changed (i'm using
How refresh observable every 30 seconds?
@component({ selector: 'app-geo', templateurl: <img mat-card-image [src]="profileurl | async "> export class geocomponent
Firebase good use of Observable (rxjs) on angular 2+
At this moment i'm using subject from rxjs without any problem, simple example: service rooms: room[] = [];
Return inner observable with which operator?
Chat.service.ts: getuserchats(): observable<chat[]> { return this.auth.curruser .pipe( take(1),
How to populate data from backend in dropdownlist and select the value in Angular?
I hava angular 8 application and i am using material. what i want to archieve is that data from the backend will be populated in a
How to fix redux-observable Parameter 'action$' implicitly has an 'any' type
I am trying to implement ts epic function, but "action$" need to have some implicit type that differs for , i could not find working example of
How to use forkJoin properly
I have a problem with inner observables. const wordscollection = this.db.collection('words').valuechanges(); return
Ad
Rxjs in nestjs - Observable subscription error
I am newbie trying out rxjs and nestjs. the use case that i am currently trying to accomplish is for educational purpose. so i wanted to read a
Observables in nestjs - Reading a file asynchronously
I am trying a use case of reading a json file asynchronously and sending it out as a response (as a rxjs observable data). here is the service
Using an observable variable without a controller in Flutter GetX
Something that i didn't completely understand about the get package is whether it is always required to put the observable variables in a
Unsubscribe observable in one tag disables all?
I have built a spa with riot.js that visualizes data that is received by a proprietary messaging system. in order to make the tags react to
Error in observable, trying to use the method get
I am trying to refactor customised api get, like this: get( route: string, responsetype: resptype = 'json', fullresponse: boolean
Running Observable with Javascript
I am trying to use observable with regular javascript. followed instructions from here:
Return own static value in Observable
In my nest.js project i do a get request to a open api. if there is no result from the api i get http status 400. in that case i want to return a
Read values from one observable but switch to another once it (the other one) emits
My desired behaviour: run http request immediately look up data in async cache if cache has the value before http
Redux - Ngrx action dispatch asynchronous treatment
I have a time slider that trigger action to filter data every change this.selecteddate$ .pipe( switchmap(elm => {
Use Rxjs in Angular to update data in a Json coming from different Json sources
I have 3 different services a,b,c. these services produce each a different json. json from service a has properties which values need to be
Return observable from async function
Tldr; i have a promise collection().add() which resolves to an object documentreference with a listener
Ad
FLUTTER MOBX: A build function returned null. The relevant error-causing widget was Observer
I'm trying to do a verification in two fields, email and password, using mobx, and i'm computing the result of two functions, in
Unable to share Observable Subject service between grandchildren components in Angular 5
I have an application where i'm using the angular cdk stepper and i'm trying to share data between a common grandchild component in both of the
Redux observable doesn't handle backend response
I'm implementing an epic for a backend call. the response doesn't get handled as expected. for my implementation i'm using these
Why does this console log 0?
Can anyone help me with this? i can't understand why this code console logs 0. thanks const button =
flutter error: The method 'combineLatest4' isn't defined for the type 'Observable'
My project never update for 6 months (written by someone & last build was successful), but today i want to update it but face some errors:
How to pass variable parameters to Observer?
I have two observers that are merged with a flatmap. the first observer returns a value that is used when the second is called.
React + Redux-Observable Timeout Marble Testing
I am creating a web app using react and redux observables and i would like to create a unit test for the timeout scenario of one of my epics.
Get interesting fields from observable
I've used angular cli 6 and firebase. i have two classes for interfaces: pps and ppsplan. export class pps { constructor (
Firebase Promise Error with Observable/BehaviorSubject
Angular firebase: i have a function that sets a value to photon2. i need to get this value out of my getphoton()
Flutter - using rxDart BehaviorSubject with Observable for global state management
I am just trying the behaviorsubject example code from here
How do I get the difference between old and new data using Delegates.Observable?
Wouldn't it be better to get the difference instead of returning the whole values for the ui to redraw? var collection:
Ad
Merge multiple observables and return one
I have a function that should return an observable with a list of conversations. to get that, i have to fetch the user conversations
Angular Observable, sharing data within components
I'm making my first app on angular. i trying to filter a list of book objects by the gender attribute. i am having difficulty sharing data between
How can I accumulate each 2 emitted values of Observable with Rx on Android?
I have one observable that emits values from 0 to 10 for each second. i need to accumulate each two values and print a result of accumulator value
RxJS: Mapping object keys to observables
I have an app where questions are shown to users. drafts for the questions are loaded from a sharepoint list. each draft contains a key which is
TypeError: action$.ofType(...).mergeMap is not a function
I am new to reactjs and trying to integrate redux with my existing project. this is my index.js file in
how to handle observables in angular firebase
I have a conceptual question. i am using angularfire2 with angular 6, and i am not sure how to handle all the observables. most of my
Subscribing a variable in rxjs
In my component, i subscribe to a variable like this: import { subject, of } from 'rxjs' .... distance: number constructor() {
how to use forkjoin from rxjs in NodeJs for multiple call using NPM request
I have to make multiple serialise call on server side in nodejs using
Converting websocket events to observables
I'm using the ws library to create a websocket client to communicate with
How to properly make a GET call in React returning an observable (resembling the method in Angular and not using promises)?
In angular, i usually subscribe to a client providing me with an observable of a get call
How to edit an observable?
Before this, i was using firebase as database service, so when i get the observable from firebase and subsribe to it const
Ad
RXJS Observable Epic LOCATION_CHANGE runs before protected route redirect
I have the issue where i have a protected route that is picked up by the below epic. if the criteria to access the protected route is not met, the
How can I get a live Firebase result limited on creation?
I am developing an iionic 3 - firebase based chat application using firebase realtime database for storing messages, loading them into the app and
How to return an Observable of type any from firebase query
I am using firebase realtime database for chat feature in my application, i just need to return an obserable of type any or type message from
Type 'Observable<{}[]>' cannot be converted to type 'AngularFireList<any[]>'
I'm pretty much new to firebase and i was going through this course:
Map operator. Different function types and accessor
I have recently updated firebase and angularfire2 in my ionic project versions: firebase: 5.0.3 angularfire2:
"Uncaught ReferenceError: DOM is not defined"
I understand this line of d3 code which adds an svg element to the body of an html page, and stores a reference to the new element in the variable
SwiftUI: State variable from observed singleton property leads to error
I use a singleton to access subscription offerings from revenuecat as an @observedobject on various views in the app:
can't get value of object from observable data
I have this data in mongodb (important field "period" is red border) :
Get into Firebase complex object containing another object
I've got angular2 project connected directly with firebase. the structure of my database is presented in the picture below. so we've got couple of
How do I pause shareReplay when there are no subscribers
For example: const s = rxjs.interval(2000).pipe(tap(console.log), sharereplay(1)) const b =
Check if an observable is complete
I need to show a toast after an observable is complete, how i can do it, my code is:
Ad
Are observables syntax sugar of promises? In what essence they are compiled under the hood?
Are observables syntax sugar of promises? in what essence they are compiled under the hood?
'Incompatible type' error in emitting a String array in an Observable in RxJava 2
Asking a very basic rxjava question here because i couldn't find it anywhere else. i'm having this observable in rxjava 2 -
Ad
Blog Categories
Ad