-
Notifications
You must be signed in to change notification settings - Fork 243
next -> redux opinionated #366
next -> redux opinionated #366
Conversation
update broken feature/flow link in docs
* Updated CSP for nonce backwards compatibility * Documented * Updates comments
- `SERVER_PORT` to `PORT` - `SERVER_HOST` to `HOST` - `CLIENT_DEVSERVER_PORT` to `CLIENT_DEV_PORT` - Replaces `code-split-component` with `react-async-component` - Renames the `nodeBundlesIncludeNodeModuleFileTypes` config property to `nodeExternalsFileTypeWhitelist` - Refactors the server and serviceworker offline page generation. We now use a set of React components (`ServerHTML` and `HTML`) to manage our HTML in a uniform fashion. - Refactors how we resolve environment specific configuration values. `NODE_ENV` is reserved for specifying a `development` or `production` build now. Use `CONF_ENV` to specify a target environment if you would like to resolve an environment specific .env file. - Refactors the client configuration filter rule to be contained within the main configuration and moves the configuration object creation into the server middleware. - Renames the `safeGetConfig` to `config`, and made it a default export. - Removes the `cross-env` library. - All server/client/shared code all use the shared config helper. - Updated dependencies, including to the latest Webpack official 2 release. - New babel plugins to optimise React production build performance. - Adds new icon sets. - Chrome favicon request issue. - Cleans up the package scripts. - Service worker would fail if a subfolder was added to the public folder.
…sary. Everything internal (tooling/docs) has been moved to an "internal" folder. The rest lives at root. The configuration has been given a massive once over too. I really disliked how there were multiple ways the config values were being read throughout the project. Everything has been changed now to use a config helper that lives in the '<projectroot>/config/' folder. All things config lives in that folder now too.
Removes CONF_ENV and refactors environment variable resolution to use NODE_ENV again.
It's certainly close to ready, if not completely ready. Havent noticed any other issues myself. |
I think I uncovered a minor bug where wrapping components differently than you're doing in the boilerplate causes the async https://github.com/sergiokopplin/react-universally/pull/3 |
Fix Router v2 Implementation
Nice catch @brianfeister !!! |
Passing colors from server to console in develop.
Hey guys! I was looking as seems to be a problem with the async wrapper. related: |
Fixed! I changed this line from client/index: const rehydrateState = window.__JOBS_REHYDRATE_STATE__; to: const rehydrateState = window.__JOBS_STATE__; |
client/index.js
Outdated
@@ -30,7 +30,7 @@ const supportsHistory = 'pushState' in window.history; | |||
|
|||
// Get any rehydrateState for the async components. | |||
// eslint-disable-next-line no-underscore-dangle | |||
const asyncComponentsRehydrateState = window.__ASYNC_COMPONENTS_REHYDRATE_STATE__; | |||
const asyncComponentsRehydrateState = window.__JOBS_STATE__; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this part in server/middleware/reactApplication/ServerHTML.js also reflect this?
ifElse(asyncComponentsState)(() =>
inlineScript(
`window.__ASYNC_COMPONENTS_REHYDRATE_STATE__=${serialize(asyncComponentsState)};`,
),
),
also reflect this change?
@maryokhin can you take a look now? |
@sergiokopplin yep, console is clean now. |
@sergiokopplin @ctrlplusb Ready to merge? 🎉 |
LGTM |
If @strues is happy lets go! 👍 |
Well done to @sergiokopplin for all his hard work on this one, and a huge thanks to everyone else who helped along the way. 👍 |
Awesome!!!! :) |
@ctrlplusb can i add my name on the contributors? :) |
Of course yes! Sorry I have been completely dropping the ball on managing this project at the moment. I have so many other gears turning, with some exciting new developments. I appreciate to the moon your contribution. In fact, expect an invite. 👍 |
Thanks @ctrlplusb! |
* feature/redux-opinionated: (25 commits) Adding logging for redux actions, and updating DevTools syntax to the latest. Updating tests to pass. Pushing updated lock files (without merge indicators) Added lock files. Also, previous commit was merging master into redux/opinionated. Ignore previous commit message Server logging enhancements (ctrlplusb#508) Minor readme updates (ctrlplusb#501) Remove link to phantom page Updates failing snapshots. Updates deps and adds an npmrc to make sure dep installs are always exact. Replaces yarn with npm. Added 100% coverage for utils folder (ctrlplusb#484) Fix link to phantom page in the documentation. (ctrlplusb#507) Rebase Remove link to phantom page Checkout refinements and deps updates from ctrlplusb#489 Update redux dependencies next -> redux opinionated (ctrlplusb#366) Updates to latest react-jobs and fixes job attached to Post. Migrates from the 'task routes' implementation for data loading to the usage of the 'react-jobs' library. Fixes missing dependencies. ...
@ctrlplusb hey man! i've pushed a commit that was supposed to be a pr on the next branch to add me as contributor. sorry for that, my mistake! Can you add me on readme also? thanks |
No worries, my sincere apologies for not having you in there already! |
Might need some help here.