react-reconciler, but Next seems to remove them whenever I run the route (TypeError: (0 , __TURBOPACK__imported__module__...__.createContext) is not a function)const createDatasetSchema = zfd.formData({
name: zfd.text(
z
.string()
.min(1, 'Name is required')
.max(100, 'Name must be less than 100 characters')
.lowercase()
.regex(/[a-z0-9-_]/)
),
});
const createDatasetSchema = zfd.formData({
name: zfd.text(
z
.string()
.min(1, 'Name is required')
.max(100, 'Name must be less than 100 characters')
.lowercase()
.regex(/[a-z0-9-_]/)
),
});
useActionState) so it can render what the errors are. Is there a good way to do this?SelectColumn::make('car_color')
->label('Colors')
->options(CarColors::class)
->sortable()
->visible(function (Car $record) {
dd($record);
}),
SelectColumn::make('car_color')
->label('Colors')
->options(CarColors::class)
->sortable()
->visible(function (Car $record) {
dd($record);
}),
User resource that has an email that has format and length requirements. Say there was a second resource where I wanted to share those same validations. Where would I store that? Normally I would put it in the MyApp.Accounts.User.Validations.Email module, but I'm not sure if that's appropriate to share across resources as a validation. The only alternative I can think of is having something like MyApp.Accounts.Shared.Validations.Email to make it clear this is a shared validation. Is there a best practice when it comes to this?