Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 138249 articles
Browse latest View live
↧

How to initiate Firebase Analytics to work on Web?

I have initiated a FB SDK in the project following the documentation: Getting started with Analytics is easy. Just add the Firebase SDK to your new or existing app, and data collection begins...

View Article


Evaulating if-statements in React using State

I've been having issues with if statements correctly evaluating, either always showing true or exhibiting strange behavior when passing variables or using state variables to be evaluated. I understand...

View Article


Using promise for array with mapping

Seems map from json does take time, and I want to wait for it using promise. formatDataOutput: function (jsonData) { return new Promise(function (resolve, reject) { let a = JSON.parse(jsonData) let b =...

View Article

I18n.changeLanguage() works only when I use debugger

I'm trying to change language on the fly inside of the app at I've encountered a problem. Here in this snippet changeLanguage(locale: 'de' | 'en') { this.selectedLang = locale; DateLocale.locale =...

View Article

i have 2 tables owner(Name,ID int) Property(PID int,Name(fk) references...

SQL> SELECT 2 Owner_First-name,Owner_Last-name,Owner-ID 3 FROM Owner 4 INNER JOIN(SELECT 5 Owner-ID, COUNT(*) AS Count Of 6 FROM Property 7 HAVING COUNT(*)>1 8 )Ow ON Owner.Owner_First-name AND...

View Article


Run fetch at regular intervals using react

I have a grid with different react components, all independant - in that they fetch their own data and display it.I wanted to somehow make them automatically refetch and update every 15 minutes. My...

View Article

React display n number of elements on page and keep the rest idle

I am creating a react app and I want to show only show 21 number of elements at a time and keep the rest in idle and show another 21 elements when scroll to bottom of page.I have my function...

View Article

Redux Saga: Await Promise

I have a promise that is already invoked and has to be awaited. Basically:const foo = () => Promise.resolve('foo'); // The real promise takes time to resolve. const result = foo(); await result; //...

View Article


How to get the values from an Array with server.get? (JavaScript)

So far I could save my queries into the database with post-request.let database = [ {'email': 'h@v.d', 'name': 'Vu', 'vorname': 'Hai'}, {'email': 'm@h.d', 'name': 'Heim', 'vorname': 'Manuel'},...

View Article


ReactJS - Does render get called any time "setState" is called?

Does React re-render all components and sub components every time setState is called?If so, why? I thought the idea was that React only rendered as little as needed - when state changed. In the...

View Article

How do you save your post data on your blog even after reloading?

I'm trying to create a blog but it doesn't work. I want the blog to have it so it can save the posts in the blog so every time I reload it still has the same posts on the website (Off-topic question:...

View Article

Understanding JavaScript evaluation [duplicate]

This question already has an answer here:Operator precedence with Javascript Ternary operator 7 answersI am fixing some code and trying to understand a certain evaluation that is happening. There was a...

View Article

Request failed with status code 401 even when I passed the api token

I'm trying to do a POST request with VueJS in Laravel, but the request failed with 401 status code, I'm passing the token into the headers but it doesn't work.const post_data = { headers: {...

View Article


Open website passing local image as argument

Problem definitionI am trying to open a website by its url providing an image stored on the user's computer as an argument using windows batch. The path of the image on the user's computer is an...

View Article

React.js, create search function to API call for list of articles without...

I'm creating a very simple app with a list of articles and a search function.I initially make an axios call and set the state to show a list of 10 articles, then I have a function when the user search...

View Article


Is there a better approach to using transitions within timer functions in d3js

I have a visualization that has a scatter plot with lines and another plot, both use a separate svg element. To animate the visualization I use the timer function, however I need to transition circles...

View Article

Image may be NSFW.
Clik here to view.

why does my list loop into different widows in React

Im creating a data management storage web app (basically a todo app ) and the issue im having is that when i enter my data it prints in separate windows i think it's looping somewhere but i am not...

View Article


Why I don't get import suggestions with babeljs

I'm using babel-env with vscode and yarn workspaces and when I'm loading a package (after compiling). I don't get any suggestion for imports autocomplete..My project structure:|--packages | |--common |...

View Article

How to detach Firestore listener?

I'm making a web game with Firestore. I use the Firestore listener and want to detach it. The official document shows this code:var unsubscribe = db.collection("cities") .onSnapshot(function (){ //...

View Article

firestore where-in query not work with orderBy?

i want to use query as written below.orderBy('created_at', 'desc') .where('type', 'in',['fav', 'tip']) with setting index like created_at: desc type: array orcreated_at: desc type: desc am i doing...

View Article
Browsing all 138249 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>