Comments (4)
Hello there! It is sort of supported at the moment, but does have some known issues. If you enable the pushState option on the Framework7App component, the URL will change as you navigate. Depending on your use case, the known issues may or may not affect you. See the "Push State" props section here http://framework7.io/docs/init-app.html for all of the options for configuring push state, and see here if you're not familiar with the Framework7App app component: http://framework7.io/react/init-app.html.
If you look through the issues in Framework7 Vue, you'll see the open issues about the router / pushState I am referring to. Since Framework7 React is built on top of Framework7 Vue, these same issues also exist in F7 React. Getting the History API working correctly is a pretty high priority for both versions of the framework. I intend to get around to looking into these soon, but can't exactly promise any time-frames.
from framework7-template-react.
Hey Ben
Thanks a lot. It worked in the way that I wanted exactly. Kudos to you to make our favourite UI(f-7) framework work with our favourite view library(React).
I encountered the following error when I click on back button of navbar-
framework7-vue.js:2958 Uncaught TypeError: this.$delete is not a function
at vueComponentClass.onPageBeforeRemove (framework7-vue.js:2958)
at HTMLDivElement. (PropsProcessor.js:139)
at Dom7.trigger (Framework7.js:9878)
at window.Framework7.module.exports.Framework7.app.pageRemoveCallback (Framework7.js:1329)
at Object.app.router.afterBack (Framework7.js:2687)
at afterAnimation (Framework7.js:2260)
at Framework7.js:2293
at HTMLDivElement.fireCallBack (Framework7.js:9905)
Please let me know can this be removed?
from framework7-template-react.
Turns out this template wasn't using the latest version. If you update framework7-react in your package.json to version 0.8.5-beta.6
, the issue will be fixed.
from framework7-template-react.
Thanks Ben! It worked.
from framework7-template-react.
Related Issues (17)
- code splitting? HOT 6
- Compatibility with reactJS native router-dom? HOT 1
- Will HMR (Hot Module Reload) work wit this template? HOT 1
- Support for HMR (hot module reload) HOT 2
- npm start not working HOT 2
- Is there any Framework 7 (v4) + React.js and Webpack? HOT 1
- use with phonegap or standalone? HOT 2
- Tree shaking template?
- Changing URL in browser doesnt work.
- error with cordova HOT 1
- themeType="ios" hardcoded in App.jsx HOT 2
- how to detect the device type HOT 4
- Preloader not working HOT 4
- Pushstate not working for android HOT 2
- Optional Parameter in Routing HOT 1
- How to set Index Route
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework7-template-react.