-
unstable cache can like do basic function analysis. Hence why keyparts is optional. You can either use that or just pass the id as args to the function signature so it can see the IDs changing.
Basically you either help nextjs figure out the function is changing by passing ids as args.. or you just do it yourself by putting the IDs in keyparts
-
In the example below, using string literals like
shopifyin the key part array is not necessary. They never change, so they never do anything.<div key="shopify" />It's like the
keyhere does nothing since it never changes.
react hook form controller component that returns useController, or register return based on controlled boolean prop (default: true )
requires your form wrapped in FormProvider
import type {
FieldPath,
FieldValues,
ControllerProps,
UseControllerProps,
UseFormRegisterReturn,