f4yai df3rb 7n9e5 d5nr3 h3fdf yen7h fb94d i7k9i r63na tt579 te23h 7inie 2thzh n7e37 re4dt 42byt ab335 9ybn7 hans2 z7y5z rf4fk React is not giving me right value on my select > option value |

React is not giving me right value on my select > option value

2022.01.21 04:19 tdservicecoFGC React is not giving me right value on my select > option value

Im doing my exam and in this project im using:GraphQL as my database of choice with Apollo as client side render and ReactJS (typescript).
I save the data from the database and map out the data.. I wrap the data inside a select and of course display all option with value and label from the mapping.
So here is the problem.. I do get the right value and label but once I load up the page and see first thing in the select box (mind you I dont "select" anything, just see it) and then press submit.. I get from console.log("Empty string") but I can see with inspector I do have a value of something..
Do people here understand why this is happening and how to make sure it really work?
Here is my code:

import React, { useState, useEffect } from 'react'; import { useQuery } from '@apollo/client' import { GET_ALL_CATEGORIES } from '../GraphQL/Queries'; const BookingMainView = () => { const { loading, data, error } = useQuery(GET_ALL_CATEGORIES); const [dataValue, setDataValue] = useState([]); const [demo, setDemo] = useState(''); useEffect(() => { if (error) return console.log(error) !loading && setDataValue(data.categories.data); }, [data]) const doingSubmit = (e: any) => { e.preventDefault() console.log(demo) } return ( 
); }; export default BookingMainView;
please if someone can understand my issue... been trying for 4days to understand why. Really need help here
submitted by tdservicecoFGC to reactjs [link] [comments]


2022.01.21 04:19 xcitor [HIRING] Full Stack Web Developer (Javascript/Typescript/Golang) at Web3Auth

[HIRING] Full Stack Web Developer (Javascript/Typescript/Golang) at Web3Auth submitted by xcitor to cryptomarket [link] [comments]


2022.01.21 04:19 irx4u Cycles: 1) stability and prosperity —> 2) expansion and projection of power —> 3) abundance —> 4) greed and moral decline —> 5) complacency —> 6) bondage and tyranny —> 7) revolution —> 8) struggle to survive —> back to 1) stability - where is the USA?

submitted by irx4u to AskReddit [link] [comments]


2022.01.21 04:19 totfjfndnsn Anything new ?

submitted by totfjfndnsn to ExoHydra [link] [comments]


2022.01.21 04:19 Miiraie_OW For this ssj team, are Vegeta’s crit buffs worth more than these other purple/blue buffs?

For this ssj team, are Vegeta’s crit buffs worth more than these other purple/blue buffs? submitted by Miiraie_OW to DragonballLegends [link] [comments]


2022.01.21 04:19 PerhapsAnEmoINTJ tiger alternate

tiger alternate submitted by PerhapsAnEmoINTJ to MandelaCatalogue [link] [comments]


2022.01.21 04:19 cruciomalfoy Is this mold? There was a spider and his web in the corner but I’ve cleaned it to take a picture.

submitted by cruciomalfoy to Mold [link] [comments]


2022.01.21 04:19 Warm_Parfait6800 Weird dream I had not sure if its related but anyway I was doing work on a barn and then my friend said hey someone wants to talk to you so I pick up the phone . Hello and all I heard was distorted rough voice saying hello . I said who is this? He said you known me for a long time.

I said oh really. He pauses laughs then said you were always a dumb clown unless peice of shit wait until we meet face to face . Then I woke up and I heard a loud yelling in my ear with the same voice. It freaked me out I turned every light on.
submitted by Warm_Parfait6800 to HatMan [link] [comments]


2022.01.21 04:19 jawsthemeswlmming This is only the second thing I’ve ever done on fresco, but I’m a little proud of it

This is only the second thing I’ve ever done on fresco, but I’m a little proud of it submitted by jawsthemeswlmming to AdobeFresco [link] [comments]


2022.01.21 04:19 Cleversided || Episode 3: Flesh and Blood Wizard Custom Cards! ||

|| Episode 3: Flesh and Blood Wizard Custom Cards! || submitted by Cleversided to FABTCG [link] [comments]


2022.01.21 04:19 moto_bl0nda Have a nice day everyone ☀️🍓💞

Have a nice day everyone ☀️🍓💞 submitted by moto_bl0nda to selfie [link] [comments]


2022.01.21 04:19 Due-Vast-3000 My Poetry and Digital Art together make these RARE NFT pieces that are only a 1 of 13. Follow me on Rarible! Drop a comment for A GIVEAWAY!

My Poetry and Digital Art together make these RARE NFT pieces that are only a 1 of 13. Follow me on Rarible! Drop a comment for A GIVEAWAY! submitted by Due-Vast-3000 to NFTsMarketplace [link] [comments]


2022.01.21 04:19 Wise-Investigator156 What's the theme of the sequels?

I ask this because I'm not a fan of the sequels but I would like to find SOME way to understand - perhaps even like - the universe they created.
The themes of the other two trilogies are easy to see. Despite their flaws, the prequel movies established a universe where lots of writers' EU books and especially 'the Clone Wars' show explore how a democracy became a dictatorship and how the Jedi Order 'lost its way'. I know the politics bored many people but you can actually learn a lot of real life lessons from that and the Clone Wars show especially did a good way of combining the fun action with meaningful messages.
The original trilogy movies were more pure space opera where good triumphed over evil, but combined with Rebels and books that showed how the Rebellion was formed and operated, they show how all-powerful evil tyranny is self-defeating and can be toppled.
To me, there's nothing original about the sequels. To me, it's basically entirely a saga about how history repeats itself, which is boring and unoriginal in Star Wars, not to mention completely undermining everything the OT accomplished. Please PLEASE correct me if I'm wrong!
submitted by Wise-Investigator156 to StarWars [link] [comments]


2022.01.21 04:19 Dependent_beauty Me_irl

Me_irl submitted by Dependent_beauty to meirl [link] [comments]


2022.01.21 04:19 J-T-Sierra WTS Each Item for 10Pgms

WTS Each Item for 10Pgms submitted by J-T-Sierra to DiabloPSN [link] [comments]


2022.01.21 04:19 ExoticaTikiRoom Rodeos This Week: 1/17-1/23

submitted by ExoticaTikiRoom to prorodeo [link] [comments]


2022.01.21 04:19 ZoolShop Penny Hardaway takes aim at media, says depleted Memphis Tigers men's basketball team playing hard despite losses

Penny Hardaway takes aim at media, says depleted Memphis Tigers men's basketball team playing hard despite losses submitted by ZoolShop to CoinTuta [link] [comments]


2022.01.21 04:19 hejingyuan199 Tasmanian Blackwood

Tasmanian Blackwood submitted by hejingyuan199 to pics [link] [comments]


2022.01.21 04:19 TweetArchiveBot Sihle Ngobese: @PHOLELO4US @BraSimEFF @LuckyHlangu @RediTlhabi @kabelodick @helenzille @IRR_SouthAfrica @NYPDnews Feel free to say that guy. As I said, the opinion of #BlavityBlacks is of no consequence to the rest of us. Enjoy your day, my guy…sho bhuti!

Sihle Ngobese: @PHOLELO4US @BraSimEFF @LuckyHlangu @RediTlhabi @kabelodick @helenzille @IRR_SouthAfrica @NYPDnews Feel free to say that guy. As I said, the opinion of #BlavityBlacks is of no consequence to the rest of us. Enjoy your day, my guy…sho bhuti! submitted by TweetArchiveBot to LibertyRSA [link] [comments]


2022.01.21 04:19 Glittering-Exam-3938 Merging the Mandela Catalog's alternates with my own art style.

Merging the Mandela Catalog's alternates with my own art style. submitted by Glittering-Exam-3938 to MandelaCatalogue [link] [comments]


2022.01.21 04:19 EasonTek2398 Name recommendations for new frankenswitch

So after some research, I found out that using MX Clone red/black stems (kailh) works just as well in frankenswitches that need cream stems and I validated that as true. Now what should I call a Tangerine housing and a red stem?
submitted by EasonTek2398 to switchmodders [link] [comments]


2022.01.21 04:19 RegExrBot Pop! Animation: Demon Slayer - Giyu Tomioka AAA Anime Exclusive now available at Big Bad Toy Store

submitted by RegExrBot to funkopop [link] [comments]


2022.01.21 04:19 teikyo- Floor prices after hatching

submitted by teikyo- to Chumbi_Valley [link] [comments]


2022.01.21 04:19 ph_maneiro Preciso de conselhos sobre jogo de criptomoeda.

primeiramente acho bom mencionar que tenho 19 anos e não entendo muito de investimentos em si, porém estou buscando aprender.
No início de dezembro conversei com meu pai sobre um investimento com retorno rápido, um jogo de nft e criptomoeda. Ele decidiu entrar com 3 mil reais, fazer uma conta completa. O jogo consiste de um time de 15 heróis que trabalham pra vc, cada um com sua raridade e habilidades, e é completamente alea´torio quando vc compra eles. Pode vir um comum, com 80% de chance, ou pode vir um 'super lendário', com 0.04% de chance. Dos 15 que tirei, foram 11 comuns, 2 raros, um épico e um super lendário. O super lendário faz, por dia, uma média de 5 a 7 BCoins (moeda do jogo). Hoje foi lançado o marketplace do jogo, onde se pode comercializar os heróis, e conseguiria facilmente vender o super lendário por 900 pra mais bcoins. Se vendesse por 900, faria na hora o ganho de 180 dias trabalhando com ele na conta.
Minha dúvida é, deveria vendê-lo? Já tirei o retorno do investimento inicial e agora estou lucrando um dinheiro considerável. Meus planos caso venda o herói seria abrir outras contas do jogo, porém fico relutante de vendê-lo por ser tão raro, caro e produtivo, e ao mesmo tempo fico receioso com a 'durabilidade' desse jogo, uma vez que não consigo enxergar de outra forma senão pirâmide.
Fico com o herói trabalhando pra mim ou vendo ele de uma vez?
submitted by ph_maneiro to investimentos [link] [comments]


2022.01.21 04:19 kinza- [GIVEAWAY] Steam Codes: The First Tree & Hyper Light Drifter

Hi, I have two spare Steam codes to give away:
1x The First Tree 1x Hyper Light Drifter
Please just leave a comment including your game of choice and I will check later today to pick two people randomly.
submitted by kinza- to pcgaming [link] [comments]


http://sushigroup.ru