We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dad747 commit ded3ad9Copy full SHA for ded3ad9
apps/mobile/v1/src/screens/ViewNote/index.tsx
@@ -234,9 +234,13 @@ export default function ViewNoteScreen() {
234
if (scrollViewRef.current) {
235
scrollViewRef.current.scrollTo({ y: 0, animated: false });
236
}
237
- // Don't reload attachments on refocus - they're already loaded
+ // Reload attachments on focus to catch any uploads from EditNote
238
+ if (noteId && isOnline) {
239
+ lastLoadedNoteId.current = null; // Force reload
240
+ loadAttachments();
241
+ }
242
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [scrollY, noteId])
243
+ }, [scrollY, noteId, isOnline])
244
);
245
246
const handleRefresh = async () => {
0 commit comments