W-15784798 - Finalize Lazy Navigation Changes #1798
Merged
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.
Description
Nothing had to be done in this PR except for removing a comment about finalizing the solution when the API is updated. It looks like I had preemptively get the
itemsCountKey
to the new return value ofonlineSubCategoriesCount
so that once the API was released, it would just work, which it does. Below is a screen shot of the before and after of the API being updated. You can notice that menu items (like earrings) that don't have children were rendering a sub-menu ("shop all") when they aren't required to.Before:
![image](https://private-user-images.githubusercontent.com/8902581/333260622-494441ed-544d-4101-9d76-f22e3c967cc8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNzEzOTYsIm5iZiI6MTcxOTI3MTA5NiwicGF0aCI6Ii84OTAyNTgxLzMzMzI2MDYyMi00OTQ0NDFlZC01NDRkLTQxMDEtOWQ3Ni1mMjJlM2M5NjdjYzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMjMxODE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWViZDFiMTdhNTljYjA4NjEzZDIxMzA2NWI4ZTg5MTY0YTMxOTQyYzlhMDY4ZjIyOGY2ZWQ5ZDE0Y2Y3MDhjOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.3Ak7s-9S8BaDBv6J0Qrv0sWKbCJbLrF-Zll1yG5p0rQ)
After:
![image](https://private-user-images.githubusercontent.com/8902581/333260712-8d638387-aa0a-40c2-8c96-73bfee9fb130.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNzEzOTYsIm5iZiI6MTcxOTI3MTA5NiwicGF0aCI6Ii84OTAyNTgxLzMzMzI2MDcxMi04ZDYzODM4Ny1hYTBhLTQwYzItOGM5Ni03M2JmZWU5ZmIxMzAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjRUMjMxODE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjliMDJjYzUyZWQ2YmZjNzQ2Y2E4MDk4YmJmMjdjZjgxNTI0YjVhZTc2ZmJhZjBiNmVlMjgyMThjNTUwZWQ4YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.1f9v6I3UvE46jRcZ7k6rX0UpiNP4f0MXvuVmUTVKdVI)
Types of Changes
Changes
How to Test-Drive This PR