There is a very large state that I get from json, that consists of at least 50 lines.
When generating the page, it gives the error "there is no such value" if you do not set the value initially and assign the interface
const [dataPosibleValue, setDataPosibleValue]:[IStatPokemon,Dispatch<SetStateAction<IStatPokemon>>] = useState('')
Is it possible not to set the value at the beginning so that there is no error during generation?
You can only set it, if you have it. If you have it you can set it by passing it into the function like so:
const [dataPosibleValue, setDataPosibleValue]:[IStatPokemon,Dispatch<SetStateAction>]
= useState('your initial long value')