Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(confirmation): fixed re-rendering of custom screen #1143

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

Valeri8888
Copy link
Collaborator

No description provided.

Copy link

changeset-bot bot commented Mar 25, 2024

🦋 Changeset detected

Latest commit: 1f34cd6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@alfalab/core-components-confirmation Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link

coveralls commented Mar 25, 2024

Pull Request Test Coverage Report for Build 8419009339

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 84.507%

Totals Coverage Status
Change from base Build 8389272253: 0.004%
Covered Lines: 9369
Relevant Lines: 10256

💛 - Coveralls

@Valeri8888 Valeri8888 force-pushed the fix/confirmation_render-custom-screen branch from 4e5be35 to 1f34cd6 Compare March 25, 2024 11:00
@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@@ -113,7 +113,12 @@ export const BaseConfirmation: FC<ConfirmationProps> = ({
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
};

const screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
const customScreen = useMemo(
Copy link
Contributor

Choose a reason for hiding this comment

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

Выглядит не очень надежно. Где эту функцию объявляют? Если она не мемоизирована в родителе, не будет ли это вызывать эту же проблему?

@SiebenSieben SiebenSieben merged commit 966a757 into master Mar 29, 2024
8 checks passed
@SiebenSieben SiebenSieben deleted the fix/confirmation_render-custom-screen branch March 29, 2024 09:15
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.

None yet

5 participants