Posts by Vinícius Carra • 175 points
7 posts
-
0
votes0
answers83
viewsQ: Call asynchronous function
I have the function: const sendSMS = () => { return async (dispatch, getState, api) => { dispatch({ type: SEND_CODE }); const { phoneNumber } = getState().AuthReducer; try { const response =…
javascriptasked Vinícius Carra 175 -
1
votes1
answer116
viewsA: How to navigate with React-router-dom when an action occurs
Navigation must be done in the action itself - the Reset only changes the state of the application. export const logar = ({ email, senha }) => { this.db.login(email, senha).then(res => {…
-
0
votes1
answer737
viewsA: How to check existing data in comics?
Just do a SELECT with the data you need to check if it exists in this table. If SELECT does not return data it is because the record does not exist otherwise the record exists.
pythonanswered Vinícius Carra 175 -
0
votes1
answer68
viewsA: Error between account in 2 tables
In its product table the foreign key was named sessao_id. However, Laravel is running SQL looking for sessoes_id. Note that in your bank the key is in SINGULAR and Laravel is looking in PLURAL.…
-
3
votes1
answer188
viewsA: Search error cep invalido
When a theoretically valid zip code (8 characters) is sent to this API (Viacep) it will return the data or a field error worthwhile true. When I worked with this API I had problems handling the…
pythonanswered Vinícius Carra 175 -
0
votes1
answer355
viewsA: Problems starting an Application with React Native
This happens when the SDK is not being located by the given directory. Try creating/editing this file within your project: android/local.properties Insert into it sdk.dir = diretório para sua sdk…
-
9
votes2
answers5261
viewsA: What are the real differences in creating a project with Expo and without Expo?
Project with Expo Expo plays the role of compiler of your app: it replaces the Android SDK and Xcode with its own method, so you don’t need to configure anything. However, the Expo limits us (makes…