Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tv4 from "tv4";
- import userSchema from "./userSchema";
- export default ({ dispatch, getState }) => next => action => {
- if (!tv4.validate(getState(), userSchema)) {
- console.log("Invalid schema");
- }
- next(action);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement