Home / Companies / Netlify / Blog / Post Details
Content Deep Dive

Grouping Immutable Deploy Data

Blog post from Netlify

Post Details
Company
Date Published
Author
Brian Douglas
Word Count
797
Company Posts That Month
11
Language
English
Hacker News Points
-
Post removed?
No
Summary

The developer at Netlify updated the deploys page by grouping deploy data by date using Immutable.js. The data was coming from an API that didn't group it by date, but Redux and Immutable.js allowed for immutability of state to be maintained. The reducer function `groupByDate()` was created to group similar deploys with the created_at date as the key, using the `reduce()` function available in Immutable Lists. This resulted in a new data structure that made it easier to display the deploy data by date. The developer used JSX to map over the grouped deploy data and render it on the page.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.