Lape

Lape

  • Docs
  • GitHub

›API

Getting Started

  • Getting Started
  • Thinking in Lape

API

  • lape
  • connect
  • useLape
  • useLapeEffect
  • undo / redo
  • ignoreState
  • lapeTrackUseState

Guides

  • Testing
  • Routing

ignoreState

ignoreState allows you to ignore objects that should not be deeply tracked by lape

import { connect, useLape, ignoreState } from "lape";
import * as yup from "yup";

const Component = () => {
  const form = useLape({
    values: {
      name: "John",
    },
    validation: ignoreState(yup.object().shape({ name: yup.string() })),
  });

  return <div>{form.error}</div>;
};

export default connect(Component);
← undo / redolapeTrackUseState →
Lape
Docs
Getting StartedAPI ReferenceGuides
Other Projects
Ugnis
More
GitHubStar
Copyright © 2021 Ugnis. All Rights Reserved.