Repository navigation
Localize memoize #50698
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
Merged
mountiny
merged 7 commits into
Expensify:main
from
shubham1206agra:test-localize-memoize
Oct 30, 2024
Merged
Localize memoize #50698
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0910231
Use localize with libs/memoize
shubham1206agra cfc2483
Merge branch 'Expensify:main' into test-localize-memoize
shubham1206agra 3cec7fd
Added keyFilter to not cache dynamic keys
shubham1206agra d9841be
Rename variable
shubham1206agra e20324c
Merge branch 'Expensify:main' into test-localize-memoize
shubham1206agra 67d8404
Merge branch 'Expensify:main' into test-localize-memoize
shubham1206agra 5a76892
Apply suggestions from code review
shubham1206agra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kacper-mikolajczak Can you tell me reason for this? I just copied this from transformKey description.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham1206agra IIRC the
transformKeydid not work for constructables but it was fixed.One of the exceptions is
Intl.NumberFormatfromNumberFormatUtilsmodule.However, for other constructables and it works:
ResizeObserver,URL)In this case I think we can remove the warning or change it to be more descriptive 👍Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update!
After testing it more carefully, it looks like it has an issue with resolving arguments for other APIs as well. For example
FormDataarguments are merged into union as it happens forNumberFormat.What they have in common is that all the arguments are optional - it may be a good starting point for investigations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kacper-mikolajczak I assume we will investigate this point in another issue, won't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely, let's make it separate issue!