Skip to content

fix(composables): adds parameter to loadMore to accept an optional query#380

Merged
Patryk Tomczyk (patzick) merged 2 commits intoshopware:mainfrom
SuddenDev:fix-composable-useListing-loadMore
Sep 4, 2023
Merged

fix(composables): adds parameter to loadMore to accept an optional query#380
Patryk Tomczyk (patzick) merged 2 commits intoshopware:mainfrom
SuddenDev:fix-composable-useListing-loadMore

Conversation

@SuddenDev
Copy link
Copy Markdown

Description

I'm marking this as a bugfix, as I assume it was not intended for the function to not have a query parameter. Should close #379.

The current problem is that filters, if set, will not be applied to the query on loadMore. This means, that when using a non-pagination style of content fetching, the functionality breaks there.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Additional context

I was trying to follow the contributing guidelines as well as I could, but please check if I missed something when making this edit (like documentation or something like that).

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 2, 2023

Someone is attempting to deploy a commit to the Shopware Frontends Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontends-demo ✅ Ready (Inspect) Visit Preview Sep 4, 2023 8:41am
shopware-frontends-docs ✅ Ready (Inspect) Visit Preview Sep 4, 2023 8:41am

Copy link
Copy Markdown
Contributor

@patzick Patryk Tomczyk (patzick) left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks :)

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.

[BUG] loadmore does not respect current route query

2 participants