- 31 10月, 2019 1 次提交
-
-
由 Henrik Wenz 提交于
close #8830
-
- 28 3月, 2019 1 次提交
-
-
由 Corbin Crutchley 提交于
* with apollo and redux example: Update deps and fix build * Fix linting errors
-
- 05 1月, 2019 1 次提交
-
-
由 Juan Olvera 提交于
I wrote a [script](https://github.com/j0lv3r4/dependency-version-updater) to update dependencies recursively in `package.json` files, e.g.: ``` $ node index.js --path="./examples" --dependencies="react=^16.7.0,react-dom=^16.7.0" ``` This PR contains the result against the examples folder.
-
- 31 1月, 2018 1 次提交
-
-
由 Jerome Fitzgerald 提交于
* [fix] apollo-redux: Separate out entire example #3463 Apollo and Redux are completely separate ways of managing state. This example serves as a conduit if you were using Apollo 1.X with Redux, and are migrating to Apollo 2.x, however, you have chosen not to manage your entire application state within Apollo (`apollo-link-state`). There is no "withData" function that allows you to call either/or. You must call "withRedux" and/or "withApollo" on your Component. They can be combined in the example at `index.js` or remain separate as seen in `apollo.js` and `redux.js`. Going forward, this example may go the way of the dodo. * [chore] reformat code to match next syntax Localize prettier sometimes has a mind of its own.
😄 ️ * Fix linting
-
- 28 12月, 2017 1 次提交
-
-
由 Jerome Fitzgerald 提交于
* [refactor] with-apollo-and-redux: 2.0.0 - This ports over `with-apollo` (w/ recent `withRouter` fix and addition for Post) along with implementing `apollo-cache-redux` #3463 - The `redux` side of things is lacking (it is the *same* as the original example) - Created a `routes.js` for use on Server and Client Side (to expand the PostList functionality) - SSR is maintained - Redid the "PostVote" a bit... sorry.
😬 ️ Possible todo(s): - Add in API and Clock Examples from `with-redux` to show Apollo and Redux working together a bit more - redux-saga (I personally use this, may be too opinionated for the base example though) Packages updated: - apollo-cache-redux - apollo-client-preset - graphql - graphql-anywhere - graphql-tag - isomorphic-unfetch - next-routes - prop-types - react - react-apollo - react-dom - redux * [refactor] fix linting issues When I run `yarn lint` explicitly these were caught, but not doing a build proper. Apologies on that! * [chore]📦 ️ package.json: like other examples * [refactor] +apollo-cache-inmemory, -apollo-cache-redux Separation of Apollo and Redux.😄 ️ We could stand to use a few actual examples of Redux, though this is a good starting block. Some other code cleanup as well.
-
- 23 11月, 2017 1 次提交
-
-
由 Brian Dombrowski 提交于
* More complete with-apollo-and-redux example with dynamic post route * Removed commented out code
-
- 04 11月, 2017 1 次提交
-
-
由 Leonardo Quixada 提交于
-
- 19 10月, 2017 1 次提交
-
-
由 Li Weinan 提交于
* update dependnecies * keep next version as `latest` and depend on `react@^16.0.0`
-
- 11 5月, 2017 1 次提交
-
-
由 Roland Warmerdam 提交于
* Many improvements to the Apollo examples * Use static properties
-
- 03 4月, 2017 1 次提交
-
-
由 Tim Neutkens 提交于
* Use latest for all examples * Update yarn.lock
-
- 31 3月, 2017 1 次提交
-
-
由 Adam Soffer 提交于
* Add minimal apollo example * Update apollo example README * Update apollo example demo link in README * Fix button styles * Fix show more button * Alias demo url * Include the data field on the Apollo store when hydrating * Revert * Include the data field on the Apollo store when hydrating per tpreusse's suggestion. * Add example to faq section in README * Sort by newest; Add active state to buttons * Make optimization suggestions * Use process.browser; inline props * Pass wrapped component's initial props into component heirarchy if they exist * Remove unnecessary sorting of array * Update Apollo example * Remove trailing comma * Update reduxRootKey * Remove unnecessary babelrc * Update with-apollo example - Remove use of deprecated 'reduxRootKey' option - Add loading indicator inside pagination button * Fix with-apollo example pagination; Pass initialState to ApolloClient * Split apollo example into two (one with and without Redux integration) * Rename createClient private function to _initClient * Set initialState default parameter inside initClient function * Remove redux dep from with-apollo example
-
- 12 3月, 2017 1 次提交
-
-
由 Jayden Seric 提交于
- Deleted several unused dependencies. - Updated dependencies. - Simplified Apollo related imports thanks to react-apollo exporting apollo-client and graphql-tag since [v0.13.2](https://github.com/apollographql/react-apollo/blob/master/Changelog.md#0132). - Tidied the readme and added a link to the Apollo docs.
-
- 08 2月, 2017 1 次提交
-
-
由 Lukas Strassel 提交于
- tackles #997 - add ./idea to gitignore for webstorm users - update all the examples
-
- 22 1月, 2017 1 次提交
-
-
由 Adam Soffer 提交于
* Add minimal apollo example * Update apollo example README * Update apollo example demo link in README * Fix button styles * Fix show more button * Alias demo url * Include the data field on the Apollo store when hydrating * Revert * Include the data field on the Apollo store when hydrating per tpreusse's suggestion. * Add example to faq section in README * Sort by newest; Add active state to buttons * Make optimization suggestions * Use process.browser; inline props
-
- 08 1月, 2017 1 次提交
-
-
由 Bernat Orell 提交于
* Routing on the client with Redux * Removing unused import
-
- 22 12月, 2016 1 次提交
-
-
由 Dan Zajdband 提交于
* Added redux and styled components (wip) examples. * Updated examples readmes and package.json * Fixed styled-components example
-
- 16 12月, 2016 1 次提交
-
-
由 Arunoda Susiripala 提交于
* Register the service worker. * Update prefetcher code to do prefetching. * Implement the core prefetching API. support "import <Link>, { prefetch } from 'next/prefetch'" * Implement a better communication system with the service worker. * Add a separate example for prefetching * Fix some typos. * Initiate service worker support even prefetching is not used. This is pretty important since initiating will reset the cache. If we don't do this, it's possible to have old cached resources after the user decided to remove all of the prefetching logic. In this case, even the page didn't prefetch it'll use the previously cached pages. That because of there might be a already running service worker. * Use url module to get pathname. * Move prefetcher code to the client from pages Now we also do a webpack build for the prefetcher code. * Add prefetching docs to the README.md * Fix some typo. * Register service worker only if asked to prefetch We also clean the cache always, even we initialize the service worker or not.
-
- 02 12月, 2016 1 次提交
-
-
由 Arunoda Susiripala 提交于
Earlier we add a event to init next.js when dom has loaded. But if at that time dom is already loaded, next.js won't get init ever. Now we are using domready NPM module which handle these for us.
-
- 28 11月, 2016 1 次提交
-
-
由 Arunoda Susiripala 提交于
* Add example app which demonstrate the problem. * Add the first working version. * Fix lint issues. * Add README.md * Use /_next/main.js as the main file URI * Add the support for loading the core next bundle. * Optimize the output by removing Next modules from pages. * Use the same package.json as master use. * Change the example repo's README for simpler instructions. * Change example projects package.json to support next build and start. * Change main.js into commons.js. * Add support for hot core reload and errors. * Introduce require based on eval-script. * Add error reporting support with hot reloading. * Update README.md
-