Nanny-State icon indicating copy to clipboard operation
Nanny-State copied to clipboard

State.After requires state to be returned

Open Moizsohail opened this issue 1 year ago • 1 comments

The following code throws an exception

const After = (state) => { console.log(state) };

Screenshot 2023-07-08 at 1 51 45 PM Screenshot 2023-07-08 at 1 52 46 PM

The following code fixes it

const After = (state) => {
 console.log(state)
 return state;
};

please update documentation or update the code.

BTW: Love this project. Keep it up.

Moizsohail avatar Jul 08 '23 08:07 Moizsohail