refactor: drop unused useCallback / useMemo over-optimizations - #141
Open
Dustin-Kelley wants to merge 1 commit into
Open
refactor: drop unused useCallback / useMemo over-optimizations#141Dustin-Kelley wants to merge 1 commit into
Dustin-Kelley wants to merge 1 commit into
Conversation
Expo DOM looks up native handlers by name at call time, so wrapping handlers only to cross the DOM bridge or an unmemoized sheet has no Object.is customer. Keep wraps that feed context, effect deps, public hooks, or Gorhom renderBackdrop. Co-authored-by: Dustin Kelley <Dustin-Kelley@users.noreply.github.com>
Dustin-Kelley
force-pushed
the
cursor/drop-unused-memoization-9089
branch
from
August 19, 2026 16:13
a79f980 to
e00917c
Compare
Dustin-Kelley
changed the base branch from
dk/pass-highlights-into-votd-biblecard
to
main
August 19, 2026 16:13
Collaborator
|
Excited about this one lol |
Dustin-Kelley
marked this pull request as ready for review
August 19, 2026 21:21
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.
Summary
Test plan
Greptile Summary
This PR removes unnecessary React callback and value memoization while preserving the existing action, bridge, sheet, settings, sharing, and highlight-drain behavior.
Confidence Score: 5/5
The PR appears safe to merge because the removed memoization does not participate in any established identity-sensitive contract.
The changed functions retain the same inputs, closures, side effects, platform guards, and error handling, while the investigated drain and immediate UI consumers do not use their identities to control lifecycle behavior.
Important Files Changed
Reviews (1): Last reviewed commit: "refactor: drop unused useCallback / useM..." | Re-trigger Greptile