React native: ^0.64.0, @react-navigation/native-stack: ^6.1.0 @react-navigation/bottom-tabs: 6.0.5 @react-navigation/native: 6.0.2 I have a login screen. If the user passes the login screen the app leads the user to a the main part of the app. This is is the MainScreen with a bottom tab bar. The bottom tab ba…
Category: Questions
How to remove an element from a Mobx observable array, without causing the entire consuming component to rerender?
So let’s say i have a todoStore. It has an action that deletes a todo by id. Note that i tried both filter and splice: The consuming Todos component(Note that i’m wrapping the Todo with observer): The simple Todo component: Even though i’m clearly mutating(as opposed to constructing a new ar…
How to rewrite in pure JavaScript code from JQuery code?
I have some trouble using JavaScript. This is my JQuery code. I checked this question convert jquery each function to pure javascript, but cannot solve my problem. I want someone can help me. Thank you in advance. Update This is the code I tried. Answer @GrafiCode said it’s good for me to answer my own …
Guild.commands is undefined in discord.js v12.5.3
So I’m using discord.js version 12.5.3 to rebuild a music bot I did a while back. I’m trying to use slash commands but when I use guild.commands.set([commands]) it says that guild.commands is undefined. Here’s that part of my code. Answer Guild.commands was only introduced in v13. In v12, th…
Catching an permission error problem discord.js?
I’m having an issue trying to catch an error. The error I’m wanting to catch is a 403 discord Missing Permission error. However instead of catching the error it’s causing my bot to go offline when the error occurs. Here is how I’m trying to catch my error. Help appreciated. Answer Text…
Hiding div/popup on page load until button click
I have a working modal in Vue, however, the modal loads empty for a split second on page load and I want it to remain completely hidden (even on page load) until the button is clicked. I tested with display:none in the CSS which works to hide it on page load, but it remains completely hidden when pushing the …
I want to create a html table layout in jQuery
I am trying to create an Html table layout using jQuery but I don’t know where I am doing mistakes. When I try to run this and check the console tab the error comes with undefined( i and table2) I just want to show the table on the chrome page means I want the output. Answer Simpling adding console.log …
How to show random images in random grid child for vanilla JS whack-a-mole
I´m working in a whack-a-mole game in vanilla JS (following this tutorial https://www.youtube.com/watch?v=rJU3tHLgb_c&t=1s) and I would like to display a random image every time the mole appears on the screen instead of the same mole image. Right now what I get is the same random image repeated in each sq…
pure javascript table checkbox filter
Table filter value with checkbox I want to match all checkboxes conditions. Problem : when uncheck and checked again. it compared last value example: I uncheck robot and re-check james It should not display robot What I need # Or I should modified filter function. Can anyone advise with my code ? Thank. Answe…
js d3 chart with timescale
I am a newbie coding js and d3, and I have the code below, I want to display the dates in array on the x axis instead of numbers. I tried many ways to display the dates; most of ways display the dates with no line and data with errors in the HTML console, that it could not read the