Skip to content

Conversation

@gabrielseco
Copy link
Collaborator

I was doing something else and I figure out that it would be a good idea to put the logic inside a hook, in case we need to give the hook to let partners render the component but at least the logic is done.

@gabrielseco gabrielseco self-assigned this Aug 19, 2025
@vercel
Copy link

vercel bot commented Aug 19, 2025

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

Project Deployment Preview Comments Updated (UTC)
remote-flows Ready Ready Preview Comment Aug 20, 2025 3:58pm
remote-flows-example-app Ready Ready Preview Comment Aug 20, 2025 3:58pm

employerAmount?: string;
description?: string;
zendeskId?: string;
zendeskURL?: string;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we forgot to remove this when we merged the other PR about zendesk

}

.RemoteFlows__Estimation__Separator {
.RemoteFlows__Separator {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will need this in another component

);
}

const useEstimationResults = (estimation: CostCalculatorEmployment) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's no state change is this function, right? So why is it a hook?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it was to separate the logic from the render function

If a partner wants to have the data normalized to do the component, we could share this hook

I follow the same pattern here

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.

4 participants