haxe-react
haxe-react copied to clipboard
Inconsistent defaultProps behavior in debug / no debug mode
Hi, Rudy! It looks like react-next has this bug too. https://github.com/massiveinteractive/haxe-react/issues/131
Can you check if latest git (with this commit https://github.com/kLabz/haxe-react/commit/138cc016470fabdba5583ccea98a84f4483b8cbf) fixes your original issue and works for your project?
If it works I'll make a PR to haxe-react too. Note that this won't be the final fix; I still need to add tests to check other cases (spreads, etc.) and this can be optimized (by skipping constant arguments, etc.). I might end up calling a "native" Object.assign to get the same behavior as react's.
Confirm, the fix solves the issue for my project.