Skip to content
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

Fixed requests not being updated when maxRequests is reached #88

Merged
merged 4 commits into from
Dec 20, 2023

Conversation

jwallet
Copy link
Contributor

@jwallet jwallet commented Dec 18, 2023

when the maxRequests is reached, we pop() the requests array so we always remove the last one when we reached the max, however we did not updated the xhrIdMap value when doing this. I changed this so the xhrIdMap is now getting the requestIndex directly using a function (computed get) and this constante is now a real Map().

I also added a check to make sure we don't print an invalid date like in the screenshot.

I decrased the maxRequests value in App.tsx so you we will catch it early if the issue comes back, but it affects the searchbox since only those 20 will be available, feel free to reapply 500.

image

@jwallet jwallet changed the title fix unmap rows when maxRequests is reached fix unmapped rows when maxRequests is reached Dec 18, 2023
@jwallet jwallet changed the title fix unmapped rows when maxRequests is reached Fixed not updated requests when maxRequests is reached Dec 19, 2023
@jwallet jwallet changed the title Fixed not updated requests when maxRequests is reached Fixed requests not being updated when maxRequests is reached Dec 19, 2023
@alexbrazier
Copy link
Owner

@jwallet thanks for all of the pull requests you've opened! I'll try my best to test and review them all by the weekend if I can.

Copy link
Owner

@alexbrazier alexbrazier left a comment

Choose a reason for hiding this comment

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

Thanks, looks good

@alexbrazier alexbrazier merged commit 89e14ae into alexbrazier:master Dec 20, 2023
4 checks passed
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.

2 participants