FeedScreen's feedItems useMemo (interleaveTrending) sat after the loading/error early returns instead of before them, violating the Rules of Hooks: the loading-state render calls fewer hooks than the loaded-state render, so React throws "Rendered fewer hooks than expected" the moment the feed finishes loading — crashing the app on every real device right after login. Moved the useMemo (and the plain posts/trendingPosts derivations it depends on) above both early returns so every render calls the same hooks in the same order. Also add graphify-out to the root .easignore.
26 lines
795 B
Plaintext
26 lines
795 B
Plaintext
# In case EAS Build's archive root resolves to this repo root rather than
|
|
# mobile/ (it has its own .easignore too) — these are backend/tooling
|
|
# directories the mobile app never needs at build or runtime. mobile/'s
|
|
# only link to this repo is a `import type` (tRPC router shape) that's
|
|
# erased before Metro ever bundles anything, so none of this needs to be
|
|
# present for a build to succeed.
|
|
|
|
.claude
|
|
.impeccable
|
|
.planning
|
|
docker
|
|
graphify-out
|
|
|
|
# Type-only dependency of mobile/'s tRPC import chain — needed for local
|
|
# `tsc` checks, never bundled into the app (type-only imports are erased
|
|
# before Metro sees them).
|
|
prisma
|
|
|
|
# Already excluded from git; listed here too since .easignore isn't
|
|
# strictly limited to git-tracked files.
|
|
pentest-ai-agents
|
|
scaffold-tmp
|
|
node_modules
|
|
.next
|
|
.git
|