SHARE
TWEET

Untitled

a guest Oct 9th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top