Skip to content

feat: update experiences on form changes#5062

Merged
AmarTrebinjac merged 4 commits intoMI-1027-profilefrom
ENG-39
Nov 12, 2025
Merged

feat: update experiences on form changes#5062
AmarTrebinjac merged 4 commits intoMI-1027-profilefrom
ENG-39

Conversation

@AmarTrebinjac
Copy link
Copy Markdown
Contributor

@AmarTrebinjac AmarTrebinjac commented Nov 12, 2025

Changes

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Preview domain

https://eng-39.preview.app.daily.dev

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
daily-webapp Ready Ready Preview Nov 12, 2025 7:11pm
1 Skipped Deployment
Project Deployment Preview Updated (UTC)
storybook Ignored Ignored Nov 12, 2025 7:11pm

onSuccess: (_, vars) => {
methods.reset(vars);
dirtyFormRef.current?.allowNavigation();
qc.invalidateQueries({ queryKey: experienceQueryKey });
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I invalidate here because its only used in settings pages for now, and with the rare updates its easier to just invalidate than map through all the edges and find the one that's been edited

const searchParams = new URLSearchParams(window.location.search);
const type = searchParams?.get('type');
router.push(`${webappUrl}/settings/profile/experience/${type}`);
qc.invalidateQueries({ queryKey: experienceQueryKey });
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same reasoning as here

@AmarTrebinjac AmarTrebinjac marked this pull request as ready for review November 12, 2025 17:55
@AmarTrebinjac AmarTrebinjac requested a review from a team as a code owner November 12, 2025 17:55
@AmarTrebinjac AmarTrebinjac requested review from capJavert, omBratteng and rebelchris and removed request for a team November 12, 2025 17:55
@AmarTrebinjac AmarTrebinjac merged commit 78e212c into MI-1027-profile Nov 12, 2025
10 checks passed
@AmarTrebinjac AmarTrebinjac deleted the ENG-39 branch November 12, 2025 19:20
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.

1 participant