GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Hailey (hailey@hails.org)'s status on Friday, 24-Oct-2025 14:51:57 JSTHaileyHailey
    in reply to
    • ✧✦Catherine✦✧
    • tef

    @tef @whitequark and a second whole class of bugs where you can really easily introduce accidental re-renders from all the footguns in the hook system

    for example <MyComponent onEvent={() => …} /> will trigger a recursive re-render every single time because a new function instance is created right there. you gotta pull the closure out, wrap it with useCallback, and pass the memoised callback to onEvent instead.

    and with all that boilerplate to do things correctly, what are even we gaining?

    In conversationabout 9 months ago from gnusocial.jppermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.