Repository navigation
fix: remove the useOnClickOutside import breaking change - #2835
Merged
Merged
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
lariciamota
marked this pull request as ready for review
May 9, 2025 16:51
lariciamota
requested review from
gabpaladino,
hellofanny and
lucasfp13
and removed request for
a team and
gabpaladino
May 9, 2025 16:51
lucasfp13
approved these changes
May 9, 2025
3 tasks
lariciamota
added a commit
that referenced
this pull request
May 12, 2025
## What's the purpose of this pull request? When [this file ](https://github.com/vtex/faststore/pull/2716/files#diff-2ad0a54eceb2d4f46e9303b3120312373a87f561a8eed452a8886f034e83f7df) was moved to the /components folder, it broke this type of import: `import useOnClickOutside from "src/sdk/ui/useOnClickOutside";`, that some clients use. We do not recommend this import, but since it's used, we shouldn't break without a major release. ## How to test it? It should build without problems if the store uses `import useOnClickOutside from "src/sdk/ui/useOnClickOutside";`. It can be tested in the core, in the [SearchInput](https://github.com/vtex/faststore/blob/ed400bc738dd7d51e0a1fffce9c13ed843b90ee0/packages/core/src/components/search/SearchInput/SearchInput.tsx#L22) instead of importing from `@faststore/ui` import from `src/sdk/ui/useOnClickOutside`.
lariciamota
added a commit
that referenced
this pull request
May 13, 2025
## What's the purpose of this pull request? Feature branch for the Delivery Promise feature - phase 1 (navigation based on shopper location). - #2708 - #2728 - #2739 - #2745 - #2749 - #2750 - #2768 - #2772 - #2775 - #2809 - #2817 - #2824 - #2835 ## How it works? ## How to test it? ### Starters Deploy Preview ## References - [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-1696) ## Checklist - [ ] For documentation changes, ping `@Mariana-Caetano` to review and update (Or submit a doc request) - [ ] TODO: Request Doc for PopOver - [ ] TODO: Remind to run cms sync in the default account when the feature branch is merged since new section was added. (And add the new section in the admin!) --------- Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Fanny Chien <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's the purpose of this pull request?
When this file was moved to the /components folder, it broke this type of import:
import useOnClickOutside from "src/sdk/ui/useOnClickOutside";, that some clients use. We do not recommend this import, but since it's used, we shouldn't break without a major release.How to test it?
It should build without problems if the store uses
import useOnClickOutside from "src/sdk/ui/useOnClickOutside";.It can be tested in the core, in the SearchInput instead of importing from
@faststore/uiimport fromsrc/sdk/ui/useOnClickOutside.