Posts by Ban • 127 points
15 posts
-
1
votes0
answers48
viewsQ: SQL Join with typeorm
Look at this, I have the following structure of entities: Entity/Ticket.ts import {Entity, PrimaryColumn, Column, OneToMany, ManyToOne, OneToOne, JoinColumn} from "typeorm"; import { Academia } from…
-
2
votes1
answer170
viewsQ: Problem typing first parameter of React setState
Hello, I’m a little new to the typescript world and there’s something going on that I can’t explain why. I have the following state: const [estaExecutando, mudarExecucao] = useState(false); Step to…
-
0
votes1
answer352
viewsQ: React Navigation passing parameters to Brother Stack route
Hello, I have the following structure: Workouts index.jsx Workoutinfo index.jsx Home index.jsx Profile index.jsx Notifications index.jsx It’s a regular Home page and a Workouts page that shows all…
-
0
votes2
answers1493
viewsQ: Change the entire color of a React tab
I want to make my page in darker tones, my folder structure is: index.js ReactDOM.render( <Provider store={Store}> <PersistGate loading={null} persistor={persistor}> <App…
-
-1
votes1
answer94
viewsQ: Pass props to React grandson component
I have 3 components, Login, Loginpresentation and Cpfpresentation. Login is the component where I contain all the logic and that call the respective "... Presentation", Login and Cpf Presentation…
-
1
votes1
answer583
viewsQ: React-router <Redirect> does not work
I’m doing an application in React and I want to make a check, if the guy is authenticated, redirect directly to Home, if not, goes to the Login screen, this is the Code: userReducer.js const…
-
0
votes1
answer164
viewsQ: Redux, how to access store state variables in functions
Hi, my question is if I can access store variables in functions, something like: --usuarioReducer.js-- const initialState = { usuario: {}, isAuth: false } --root.js-- import { Redirect } from…
-
-1
votes1
answer187
viewsQ: Cache Redux Store state
Hello, I’m new to the whole issue of React and Redux so I wanted a little help. I made a simple code: home js. import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'…
-
1
votes3
answers132
viewsQ: Best way to pass data from one component to another
I have a code where a list of plans is displayed that an academy has, when clicking on one, opens a page where it chooses whether it will be (Time: quarterly, half-yearly or annual), and selects the…
-
0
votes1
answer102
viewsQ: Checkbox with checked property does not return me any value
I have a code where the person must select a modality of the academy, for example, the martial arts plan, the person must select which fight she wants. So I made the following code: <div…
-
0
votes1
answer190
viewsA: Git Commits are not updating
I managed to find the problem, It happened because I checked out a commit. However, as I did some commit in HEAD my commits got on a separate branch. They won’t show up in master. The solution for…
-
0
votes1
answer190
viewsQ: Git Commits are not updating
I created a repository on Github and so far everything perfect, at first I gave a commit just for testing. git add -A git commit -a -m "Original" And so far perfect. So I made several changes to the…
-
1
votes1
answer99
viewsQ: Handle HTTP Request with Item Array as response
Whoa, all right, guys? Maybe this question won’t help anyone, but I don’t know but what to do, you Stackoverflow guys are my hope. Next, on the page I’m mounting, will show all the plans that an…
-
-1
votes1
answer46
viewsQ: Problem with Function Return, even returning false runs
Check it out, I have a code where the person type her number, check if the user exists or not, if yes, search his data, check if he has password or not, if you have goes to a page if you don’t have…
-
2
votes1
answer100
viewsQ: Problem with Http Request Angular
Iae galera! Look, I have a code here that’s gets the user data when he types in his CPF, I recently started using Async functions. the idea of Async would not only be to perform the function from…