Skip to content

Conversation

jancy01
Copy link

@jancy01 jancy01 commented Mar 25, 2025

I have tested this pr #95 with all the lib folder to test ssg-hx-uk and static-site-generator sites to use react18.
In this pr updating the version of react and react-dom to 18.2.0 and react-redux to 9.1.2 and redux to 5.0.0. so we can use this version in consuming repo like ssg-purple-parking, ssg-hx-uk and static-site-generator sites . Once this release is mreged to master , then using this version in ssg-purple-parking to use react18.20.0 .We will have testers involved and PM to check the error data etc.

@jancy01 jancy01 requested review from hxtomprice and putvande April 1, 2025 12:35
"react": "18.2.0",
"react-dom": "18.2.0",
"react-redux": "9.1.2",
"redux": "^5.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we update these versions to their latest (sensible) versions.
React and React-dom to 18.3.1 and react-redux to 9.2.0.

Would we be able to upgrade Redux to a newer version? The version used is over 6 years old.
What about React, can we (and should we) use 19?


const generateOutput = (template, props, options) => {
const method = props.dataSource && props.dataSource.hydrate ? 'hydrate' : 'render'
const method = props.dataSource && props.dataSource.hydrate ? 'hydrate' : props.dataSource.hydrateRoot ? 'hydrateRoot' : 'render'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be done in a different way? Nested ternary is difficult to read.

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