Skip to content

Conversation

@jakebball
Copy link

@jakebball jakebball commented Jul 14, 2022

Added a freezeMiddleware built in to freeze the reducer state table to enforce immutability rules. Previously impossible per issue here #16 but as mentioned with the addition of table.clone it was trivial to implement.

Very small note:

Added the lua tag to the thunk middleware example on line 271 of of the api reference.

@jakebball jakebball changed the title added freezeMiddlware as well as docs for it added freezeMiddleware as well as docs for it Jul 14, 2022
Copy link
Contributor

@ZoteTheMighty ZoteTheMighty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Could you add a few unit tests to this behavior?

Once you've added some tests, you should be able to accept the CLA and address the CI issues (I believe you'll just need to run StyLua).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants