149
questions
1
votes
0answers
Event Bus to communicate between siblings. Do i need a parent and its data sent as prop?
I watched a video to understand how to use event bus to communicate between siblings, and in the video there was a parent with some data that was sent to the childs as a prop, then a met...
0
votes
0answers
How to re-render a Button to change “disabled” property on “renderMessageImage” with react-native-gifted-chat?
I am learning React Native and this is my first post at Stack Overflow.
I'm trying to re-render a button to make its disabled property change from false to true when onPress.
This ...
1
votes
0answers
Invalid Hook Call for GraphQL Query
I am trying to run a simple graphql like this. I want to display all data fetched on the screen (for now the console.log would also work). However, everytime I click the button, I get th...
0
votes
0answers
Supposed to debug a new project. “Maximum call stack size” causing issues. How to fix?
As you can see, a lot of call stack errors. What would be the steps in debugging and fixing it ?
0
votes
0answers
Select2 Plugin Delete current list and reinsert new list from event
I am using Select2, I would appreciate it in advance if you could help me with the following problem. I have a table where I add elements of type using a button.
I am starting th...
0
votes
1answers
Is something like 'onImport' exists in js?
There are two files
file 1
import { getSingleRunningPromiseFunction } from "./main"
const getSingleRunningPromise = getSingleRunningPromiseFunction.bind({
singlePromise: un...
-1
votes
1answers
Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the 'opacity' property is read-only
I am trying to set the property value of my pseudo element css class via javascript file.
The problem is that I am getting the error shown in the title.
Is there any other way to...
0
votes
0answers
How can I make a MathML node generated by JavaScript render the same as the equivalent statically written node?
I'm trying to write a dynamic web page to drill the user on arithmetic. My intent is for a piece of JavaScript to generate an arithmetic problem, build and present a MathML DOM node to r...
0
votes
0answers
MonogoDB query problems
Hi I'm using nodeJs and mongoDB to build an API, everything worked just find until I really don't understand why, any of my requests dealing with the database stopped working. (Model.fin...
-2
votes
0answers
Cant use array methods for Each and Length on array of objects [closed]
Closed. This question is off-topic. It is ...
-1
votes
1answers
How to add DOM elements to my state, with useEffect hook without error/warning in the console?
I'm actually trying to target some DOM elements in my empty state with useState and useEffect hooks. No problem at all, I think I'm doing right. Here's my actual code :
const [state, ...
0
votes
1answers
Event fired when user presses enter and element loses focus
I want to open a modal whenever the user presses enter on the contenteditable field, and also when the user loses focus on the element. The issue is that when the user presses enter, bot...
0
votes
1answers
why boolean variable is passed to useState() is always false? React hooks
I have a simple functional component and would like to initialize the state with a boolean, depending on the condition. For example:
export default() => {
const st = useSelector...
-2
votes
0answers
How to display values from SQLite database with React-native
I want to gather information from a Database SQLite with java script, I write that:
enter image description here
However that doesn't display anything.
What's wrong in my code ?
...
-2
votes
0answers
Make hidden elements in scrollable sticky nav div viewable when scrolling page [closed]
Closed. This question is off-topic. It is ...
26
votes
4answers
What is the need of empty braces '{ }' at the end of array of structs?
I hit some c code in Linux kernel:
static struct ctl_table ip_ct_sysctl_table[] = {
{
.procname = "ip_conntrack_max",
.maxlen = sizeof(int),
.mod...
0
votes
0answers
Java Efficient Ways to auto-save text files
I am trying to create a Text Editor with an "Auto-Save" feature. This means that whenever the user makes any changes to the current text (e.g. appends or deletes letters, words, lines, e...
0
votes
0answers
Spring @Autowire many beans
I am writing a Factory class that depending on a given parameter would return various implementations of an interface:
class Factory {
public MyType getType(String param) {
if (p...
0
votes
0answers
Can i search web without using WebView in Android
I want to surf the web (Wikipedia to be Precise) in my app but without using webview. If the user has a query i just want to open Wikipedia behind the screen and get some results. If thi...
-1
votes
0answers
can we give a same object name for multiple objects
I have created a JavaFX programme only using the main java file and I created 42 buttons with the same variable name but different ids using for loops but when I try to implement the sam...