natemoo-re / microsite

Do more with less JavaScript. Microsite is a smarter, performance-obsessed static site generator powered by Preact and Snowpack.

Home Page:https://npm.im/microsite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useGlobalState triggers rerender for every change

natemoo-re opened this issue · comments

Ideally, useGlobalState would track which properties are being accessed and only rerender when that particular property has changed