Advertisement
Guest User

Untitled

a guest
Oct 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import tv4 from "tv4";
  2. import userSchema from "./userSchema";
  3.  
  4. export default ({ dispatch, getState }) => next => action => {
  5. if (!tv4.validate(getState(), userSchema)) {
  6. console.log("Invalid schema");
  7. }
  8. next(action);
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement