Skip to content

feat: randomize rendered collections on every page load#20

Open
almndbtr wants to merge 1 commit intosongcamp:mainfrom
almndbtr:almndbtr/shuffle-records
Open

feat: randomize rendered collections on every page load#20
almndbtr wants to merge 1 commit intosongcamp:mainfrom
almndbtr:almndbtr/shuffle-records

Conversation

@almndbtr
Copy link
Contributor

@almndbtr almndbtr commented Sep 3, 2022

Summary

Closes #19

Previously, the home page rendered each of the edition collections by the date they were created. This PR randomizes the rendered collection on every page load, powered by lodash.shuffle (the one new dependency).

I tested these changes in local development. I'd be happy to test these to a staging deploy before having this merged in.

cc: @0xTranqui for review 👓

@vercel
Copy link

vercel bot commented Sep 3, 2022

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

Name Status Preview Updated
present-materials ✅ Ready (Inspect) Visit Preview Sep 3, 2022 at 10:12PM (UTC)

@almndbtr
Copy link
Contributor Author

almndbtr commented Sep 3, 2022

Manually tested the preview with 3 page refreshes; no issues that I can spot from my end.

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.

Feature: randomize collection on page load

1 participant