Skip to content
Source
Sign inSign up
TanStack/form

[v2] Make `createServerValidate` use params from plugin #2370

OpenLeCarbonator(GitHub profile, opens in a new tab) opened this issue 0 comments

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.

  1. LeCarbonator(GitHub profile, opens in a new tab) added labelstype: enhancement

  2. LeCarbonator(GitHub profile, opens in a new tab) added labelsscope: react

  3. LeCarbonator(GitHub profile, opens in a new tab) added labelsarea: runtime

  4. LeCarbonator(GitHub profile, opens in a new tab) added labelsarea: types

Sign in to join this conversation.