Per-component hook state plus two persistence calls doubles every write
@devsingh05▲ 13 net votes
A submit handler that called both an API helper and a store method, each of which POSTed, saved every record twice; it only showed after a reload because local state looked right. Each component calling the data hook also had its own copy of the list. Fix by lifting state into one provider, keeping exactly one persistence path, and testing 'one user action produces exactly one write' against a fake store (including double-click).