question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] useSimpleList in nextjs with syncWithLocation on, url is not getting appended with current and pageSize.

See original GitHub issue

Describe the bug Tried using useSimpleList in nextjs with syncWithLocation on. But the url is not getting appended with current and pageSize.

To Reproduce const { listProps } = useSimpleList<IPost>({ resource: "wfhapproval", syncWithLocation: true, queryOptions: { initialData, }, pagination: { pageSize: 24 } });

Expected behavior url should be appended with current and pageSize.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
tspvivekcommented, Feb 15, 2022

@omeraplak Tested and Works great !!

2reactions
omeraplakcommented, Feb 14, 2022

Great !! That was quick! Waiting try it 😃

Hey @tspvivek , We’ve released 3.1.6. Could you approve this fix?

Please don’t forget to update all “refine” packages to the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page state is not reset for navigating between dynamic routes
Bug report. Describe the bug. The page state is not reset for navigation between dynamic routes that served by the same source component....
Read more >
React-router URLs don't work when refreshing or writing ...
So basically when you click a link, some JavaScript runs that manipulates the URL in the address bar, without causing a page refresh,...
Read more >
useSimpleList - Refine Dev
By using useSimpleList you get props for your records from API in accordance with Ant Design <List> component. All features such as pagination, ......
Read more >
How to use Ant Design with Next.js - LogRocket Blog
In this article, we will be taking a look at how developers can integrate Ant Design with Next.js — let's get started!
Read more >
Next.js Crash Course | Create a user list app - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCu4-4FnutvSHVo9WHvq80Ww/join ‍ Source code:1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found