kodyl / react-document-meta

HTML meta tags for React-based apps. Works for both client- and server-side rendering, and has a strict but flexible API.
MIT License
321 stars 23 forks source link

Not work in iphone #13

Closed tonyzheng121 closed 8 years ago

tonyzheng121 commented 8 years ago

It can not work properly in iphone.

danieljuhl commented 8 years ago

Could you please provide some details, of you expect anyone to look into this. The short answer is that it does work. Code sample, expected result, and actual result.

tonyzheng121 commented 8 years ago

sorry, below is my code.

// routes.jsx
export default (
  <Route>
    <Route path="/" component={ App }>
      <Route path="dailyoperation" component={ DailyOperation } />
    </Route>
    <Route path="/test1" component={ Test1 }/>
    <Route path="/test2" component={ Test2 }/>
    <Route path="/test3" component={ Test3 }/>
  </Route>
);
// Test2.jsx

import React, { Component, PropTypes } from 'react';
import DocumentTitle from 'react-document-title';
import { Link } from 'react-router';

class Test2 extends Component {
  render() {
    return (
      <DocumentTitle title="test2">
      <div>
        test2 <Link to="/test3">test3</Link>
      </div>
      </DocumentTitle>
    );
  }
}

export default Test2;

I test in In iphone5,6 wechat browser, the title does't change when i switch in different page.

danieljuhl commented 8 years ago

Sorry, but this is not a very useful test case (you've only included some of your code) - in my end, it works just fine, and I haven't heard of any problems.

Can you please make a FULL but minimal reproducible case.

danieljuhl commented 8 years ago

Should be fixed in 2.0.1, otherwise please re-open and provide more details