Skip to content

feat(feed): save feed state before going to common friend#244

Draft
kabaniery wants to merge 4 commits into
friendly-social:devfrom
kabaniery:183_saveFeedState
Draft

feat(feed): save feed state before going to common friend#244
kabaniery wants to merge 4 commits into
friendly-social:devfrom
kabaniery:183_saveFeedState

Conversation

@kabaniery

Copy link
Copy Markdown

@y9san9

y9san9 commented Jun 15, 2026

Copy link
Copy Markdown
Member

@bakatrouble We have this tutorial https://github.com/friendly-social/web/blob/dev/docs/WORKFLOW.md

We try to keep 1 commit per PR if possible. So can you rebase and submit changes as a single commit?

@kabaniery

Copy link
Copy Markdown
Author

@y9san9 fixed merge conflict and prettier errors

);

useEffect(() => {
const feedState = initialFeedState.current;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the feed state is not reset properly, which causes a closed feed dialog to be opened again on page refresh:

Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for thorough testing!

},
},
replace: true,
});

@WhoReadThisWillDie WhoReadThisWillDie Jun 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would propose implementing this logic with URL search parameters (https://reactrouter.com/api/hooks/useSearchParams). Then we wouldn't have to use this 'fake' navigate call to save the state

};
}

export type EmailBindingSuggestionStatus =

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this used for?

@y9san9

y9san9 commented Jun 16, 2026

Copy link
Copy Markdown
Member

Convert to draft means that we are waiting for changes, once you think this is ready for review, make it ready for review again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants