Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Removing tap-event due to React 16 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
egalli committed Dec 19, 2017
1 parent e6d7d76 commit e64d4ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Node-DC-SSR-electrode/src/client/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { Router, browserHistory } from 'react-router';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from './reducers';
import injectTapEventPlugin from 'react-tap-event-plugin';
// import injectTapEventPlugin from 'react-tap-event-plugin';

injectTapEventPlugin();
// injectTapEventPlugin();

window.webappStart = () => {
const initialState = window.__PRELOADED_STATE__;
Expand Down
4 changes: 2 additions & 2 deletions Node-DC-SSR-electrode/src/server/views/direct-mode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router'
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import injectTapEventPlugin from 'react-tap-event-plugin';
// import injectTapEventPlugin from 'react-tap-event-plugin';
import { ArgumentParser } from 'argparse';
import format from 'python-format';
import { routes } from '../../client/routes';
Expand Down Expand Up @@ -70,7 +70,7 @@ user-agent: ${args.userAgent}`);
} else if (redirectLocation) {
console.log('Error: 302');
} else if (renderProps) {
injectTapEventPlugin();
// injectTapEventPlugin();
global.navigator = global.navigator || {};
global.navigator.userAgent = args.userAgent;

Expand Down
4 changes: 2 additions & 2 deletions Node-DC-SSR-electrode/src/server/views/index-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ReduxRouterEngine from 'electrode-redux-router-engine';
import {routes} from '../../client/routes';
import {createStore} from 'redux';
import rootReducer from '../../client/reducers';
import injectTapEventPlugin from 'react-tap-event-plugin';
// import injectTapEventPlugin from 'react-tap-event-plugin';
import {generateProduct} from '../data/generator';
import {config} from 'electrode-confippet';

Expand Down Expand Up @@ -42,7 +42,7 @@ module.exports = (req) => {

const app = req.server && req.server.app || req.app;
if (!app.routesEngine) {
injectTapEventPlugin();
// injectTapEventPlugin();
app.routesEngine = new ReduxRouterEngine({routes, createReduxStore});
}

Expand Down

0 comments on commit e64d4ab

Please sign in to comment.