React-hook form validation with prime

UI Components for React
Post Reply
gokhantiknaz
Posts: 10
Joined: 11 Nov 2020, 15:19

24 Jun 2021, 15:23

Hi,

I'm working with prime react & react-hook form validation.
But i couldnt get defaultvalues in useEffect. Or I cant set values from api in useEffect. what must i do for this? I'm using component inside components
MasterComponent
childcomponent 1
childcomponent 2

Master component includes two or more child component. And my submit button is in master component.

Here is a sample for only load values from api.

https://codesandbox.io/s/angry-gagarin-ypb3d

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

28 Jun 2021, 10:04

Thanks a lot for the sample! @mcan could you please check this issue?

mcandu
Posts: 107
Joined: 20 Jan 2021, 16:31

06 Jul 2021, 13:36

Hi, I'll check and get back to you as soon as possible.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests