Skip to content

refactor: retrieve country data on page load#646

Merged
ckniffen merged 5 commits intostagingfrom
refactor/dynamic-countries-data
Mar 28, 2023
Merged

refactor: retrieve country data on page load#646
ckniffen merged 5 commits intostagingfrom
refactor/dynamic-countries-data

Conversation

@ckniffen
Copy link
Copy Markdown
Collaborator

High Level Overview of Change

Moves country data out of the js bundle and instead load it when the user visits the node page. This reduces the bundle by 39kb (gzipped).

Merged #643 too early. Needs #640.

Type of Change

  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)

- `<Hexagons>` remove redux and switch to hooks
- `<Map>` remove redux and switch to hooks and ts
- `<Nodes>` use `isEarlierVersion` instead of one off compare
Moves country data out of the js bundle and instead load it when the
user visits the node page. This reduces the bundle by 39kb (gzipped).
@ckniffen ckniffen requested review from JST5000 and pdp2121 March 28, 2023 01:30
@ckniffen ckniffen changed the base branch from staging to refactor/network March 28, 2023 01:48
@ckniffen ckniffen changed the title Refactor/dynamic countries data refactor: retrieve country data on page load Mar 28, 2023
Base automatically changed from refactor/network to staging March 28, 2023 17:25
@ckniffen ckniffen merged commit b7ffdc6 into staging Mar 28, 2023
@ckniffen ckniffen deleted the refactor/dynamic-countries-data branch March 28, 2023 20:17
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.

3 participants