Skip to content

added freezeMiddleware as well as docs for it#72

Open
jakebball wants to merge 5 commits intoRoblox:masterfrom
jakebball:master
Open

added freezeMiddleware as well as docs for it#72
jakebball wants to merge 5 commits intoRoblox:masterfrom
jakebball:master

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).

@raazaymaan25-dotcom
Copy link

I need to send

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.

4 participants