Fix external store mutation detection

Fixed a bug where React's useSyncExternalStore hook could miss store mutations when a component tree was hidden and then revealed. The fix ensures that subscription effects are always reconnected when a hidden Activity subtree becomes visible again, even if the component doesn't re-render, so it can detect any changes that occurred while it was hidden.