Skip to content

[v2] Make createServerValidate use params from plugin #2370

Description

@LeCarbonator

Instead of:

const { createServerValidate } = serverValidateHelper({
  framework: next({
    // options related to per-server validator
  }),
})

Do:

const { createServerValidate } = serverValidateHelper({
  framework: next({
     // options related to framework
  }),
})


createServerValidate(formOpts, {
  // options that a plugin might need. Example: FormData parsing details
})

The options should be inferred from the plugin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimeThis issue affects the runtime of the library.area: typesThis issue affects the types of the library.scope: reactThis issue specifically affects the react adapter.type: enhancementThis requests an enhancement to existing behaviour.v2This issue affects v2 as well.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions