I need to reload the App fully. The problem is that I can not change the application input parameters. What should I do ?
App
import React from 'react';
import { App, View } from 'framework7-react';
import routes from './routes';
export default function (props) {
let f7params = {
routes,
reloadCurrent: true,
ignoreCache: true,
data: function () {
return props;
}
};
return (
<App params={f7params}>
<View url="/tab-view/" main className="ios-edges" />
</App>
);
};
Rendering:
for (let i=0; i< 2; ++)
ReactDOM.render(
React.createElement(App, { counter: i }),
document.getElementById('app'),
);
Later in app
this.$f7.data.counter
always equals 0. I want first time 0 and second time 1