* example with-noscript use next@latest
* fix : example/with-noscript react-dom/server usage
Since the update to react ^16.0.0 react-dom import location has changed
* [fix] with-apollo: Cannot read property 'data'
When we create the initial serverState, we need to create the
eventual construct of the Apollo Data to reside within
Later in the constructor this allows for the initApollo to either
be generated from SSR, or to init from scratch.
Fixes
> Cannot read property 'data' of undefined
> TypeError: Cannot read property 'data' of undefined
* [refactor] with-apollo: reduce init `serverState`
No need to explicitly set `data` as empty.
This trims up 4 lines. 😀️
* Updated dependencies related to Apollo and React.
* Updated libs with Apollo 2 new set of modules.
* Updated to Apollo 2 react integration modules.
* Updated withData to separate apollo state from the app's state.
* Updated dependencies related to Apollo and React.
* Updated libs with Apollo 2 new set of modules.
* Updated to Apollo 2 react integration modules.
* Updated withData to separate apollo state from the app's state.
* [chore] styled-jsx-plugin-sass@0.2.0, show dynamic
styled-jsx-plugin-sass had an update that now allows for sass and
dynamic to live together.
This updates that package and updates the example slightly to show how.
* [fix] errant space in styled-jsx-scss example
* Make styled-jsx configurable
* Add styled-jsx-plugin-postcss example
* Add styled-jsx 2.1.0 with plugins support
* Move examples around and add description
* Add link to new example
* Update babel-preset.js
As './dist/server/build/babel/preset' now return a function, in this example we need to first call the function and after that replace styled-jsx
* linting issues solved
* don't fetch messages server-side if user is not found
Currently, the component always fetch everything under '/messages' even if the user is not authenticated on the server side. Update it to not fetch if the user is not found as a better example on handling.
* fix lint error
* emotion v8 + adjustments for breaking changes
* Corrected versioning
* Take hydrate from 'react-emotion'
I was actually wondering that, but haven't seen hydrate in the medium post (even though you pointed out that react-emotion exports all of emotion and I've seen it in source) and didn't want to risk it for the off chance that it *should* be imported directly from emotion for some reason :D
* Configurable opts for babel-preset-env + babel-plugin-transform-runtime
This adds `preset-env` and `transform-runtime` options to the
`next/babel` Babel preset, which are then passed through to those
presets and transforms. This allows configuration to keep next.js
from the default 'maximum' transform, and instead use built-in
implementations of globals, classes, async, and other commonly-supported
features.
Fixes#2989
* Use spread notation instead of Object.assign
* Git ignore with-reasonml/lib folder
The lib folder contains code generated by BuckleScript, it shouldn't be
versioned.
* Fix, case sensitive paths
Next.js use case-sensitive-paths-webpack-plugin and BuckleScript tries
to maintain the filename case.
* Refactor, use a .babelrc file instead of a babel config in package.json
This is the official recommended way in Next.js
* Enable way, way, waaaay nicer error messages!
Adds `"bsc-flags": ["-bs-super-errors"]` to the bsconfig.json file.
https://reasonml.github.io/community/blog/#way-way-waaaay-nicer-error-messages
* Fix npm scripts & use concurrently to run bsb & next in parallel for dev
* Upgrade bs-platform
* Replace statefulComponent with new reducerComponent
https://github.com/reasonml/reason-react/blob/master/HISTORY.md#024
* Upgrade with-reasonml example to next.js 3
* Define dependencies & NPM stuff for the example
* Setup Babel preset
* Add sources of working version of example
* Indicate ajax loading state
* Add readme file
* Remove unneeded .babelrc