Roblox / roact

A view management library for Roblox Lua similar to React
https://roblox.github.io/roact
Apache License 2.0
558 stars 143 forks source link

Make PureComponent perform shallow equality check on state #377

Closed foxydevloper closed 5 months ago

foxydevloper commented 1 year ago

Closes #376

This makes PureComponent perform a shallow equality check on state in shouldUpdate(). This is the same behavior as React and is what PureComponent was documented as actually supposed to do.

Checklist before submitting: