You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it was my mistake, not react-hook-form v8 bug, condition was too loose and resetForm() was called
initial value for image must not be undefined, he wrote in issues, maybe cause for reset images fail
3 states for images and text, many rerenders, maybe can be better
Dropzone is simple and fine
maybe solve it with useQuery dependant queries without suspense
// both images and text are loadedconstisLoadingCompleted=!isAvatarLoading&&!isHeaderLoading&&!isTextFieldsLoading;if(isMounted&&user&&!isLoadingCompleted){run(user);}// include these in dependencies// important: because they are returned from the hook, can be stale// otherwise it sets undefined imagesgetValues,reset,
Note: __dirname fails, it gives path of COMPILED file
use cwd() once in utils.ts for root dir in next.js app and reuse it
constrootDirAbsolutePath=join(__dirname,'..');// join(__dirname, '..') is wrong, gives:// ...nextjs-prisma-boilerplate/.next/server/pages/api/// fails in seed too