Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can use setMeta ? #647

Closed
farhad-arjmand opened this issue May 10, 2016 · 2 comments
Closed

how i can use setMeta ? #647

farhad-arjmand opened this issue May 10, 2016 · 2 comments

Comments

@farhad-arjmand
Copy link

when i use setMeta :
TypeError: context.setMeta is not a function

@AlexCrookes
Copy link

you need to set the contextTypes in your component, i.e.

(functionName)..contextTypes = { setTitle: PropTypes.func.isRequired, setMeta: PropTypes.func.isRequired };

Once you do that, you can setMeta() to your hearts content

@ulani
Copy link
Member

ulani commented May 27, 2021

@farhad-arjmand thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants