hono icon indicating copy to clipboard operation
hono copied to clipboard

fix(jsx): preserve the state of element even if it is repeatedly evaluated by children

Open usualoma opened this issue 1 year ago • 1 comments

There was a bug where the hook state was not maintained when passed as children. This is not a specification change, but a fix to the original expected behaviour, so a patch version release would be acceptable, but it might cause changes in the results in existing applications, so it is better to include it in a minor version update with #2553.

Author should do the followings, if applicable

  • [x] Add tests
  • [x] Run tests
  • [x] yarn denoify to generate files for Deno

usualoma avatar Apr 27 '24 00:04 usualoma

Thank you @usualoma !

I'll merge this into the "next" branch, which I will create later. The next minor version will be shipped soon!

yusukebe avatar Apr 27 '24 02:04 yusukebe

Merging now!

yusukebe avatar Apr 30 '24 11:04 yusukebe