@comparaonline/ui-wizard-form-history-listener
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.6 • Public • Published

    @comparaonline/ui-wizard-form-history-listener

    An utility intended to be used in conjunction with WizardForm to manage the URL changes.

    By convention, the navigation using the browser controls (back, forward and address input) is limited to backward only. The forward navigation is replaced to the current active step.

    Installation

    yarn add @comparaonline/ui-wizard-form-history-listener
    

    Usage

    import { QuoteFormHistoryListener } from '@comparaonline/ui-wizard-form-history-listener';
     
    const QuoteForm: React.FunctionComponent<Props> = ({ handleSubmit }) => (
      <WizardFormManager<Partial<FormValues>>>
        {({ onSubmit, initialValues, ...props }) => (
          <>
            <WizardForm
              {...props}
              formProps={{
                onSubmit,
                initialValues            
              }}
            />
     
            <QuoteFormHistoryListener route="/:id/:stepId" {...props} />
          </>
        )}
      </WizardFormManager>
    );

    Keywords

    none

    Install

    npm i @comparaonline/ui-wizard-form-history-listener

    DownloadsWeekly Downloads

    151

    Version

    2.2.6

    License

    none

    Unpacked Size

    18.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar