Repository navigation
fix(deps): bump @stream-io/state-store to 1.4.0 - #4048
Merged
Merged
Conversation
👋 Hi Oliver, want a second pair of eyes on this?I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.
Or comment |
This reverts commit 0823c75. State reads stay declared at the call site: every useStateStore call passes a selector naming the fields it reads, and an explicit identity selector where the whole state is needed. The selector-less form also widened useAttachmentPickerState and useBottomSheetState to re-render on every change to their stores. AGENTS.md now records the rule.
SDK Size
|
isekovanic
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
@stream-io/state-storefrom^1.3.1to^1.4.0(release).1.4.0 changes only the React bindings (GetStream/js-toolkit#69):
useStateStore(store)can be called without a selector and returns the whole state.The selector overloads are unchanged.
yarn.lock:yarn dedupe @stream-io/state-storemakes every range (^1.2.0and^1.3.1fromstream-chatand@stream-io/i18n, and^1.4.0) resolve to one 1.4.0 copy, so the bundle doesn't get two.yarn typecheckinpackage/passes.Selectors dropped in favor of the selector-less hook
7 call sites now call
useStateStore(store)instead of passing a selector that returned the whole state. A selector-less call returns the store value itself and re-renders on every update, so the behavior is unchanged. The only difference is one extra render when an update sets every value to what it already was. The selector constants and the type imports that only they used are removed.Selectors that pick one key of a one-key state, such as
({ attachments }) => ({ attachments }), are kept. They keep the component tied to that key if the state type gains more keys later.Checks:
yarn typecheckpasses, eslint and prettier are clean on the changed files, and jest passes (1,382 passed, 13 in already-skipped suites).Changed:
useMessageComposerHasSendableData,useSupersededChannelSwapandScheduledMessageSaveButton(editingAuditState, read only to re-render on every composer change);useWSConnectionStateanduseNetworkConnectionState(return the whole state);useBottomSheetStateanduseAttachmentPickerState(local hooks that return their store's whole state, so callers still destructure the same fields).