-
Notifications
You must be signed in to change notification settings - Fork 164
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
unable to fetch data in nextjs headless WordPress #60
Comments
Please check if you have installed all the plugins described in the README and check your code against this branch |
Hi @SanjayGitHub00 and @ imranhsayed I am far from an expert in graphql queries, but I do not understand the last few lines in the get-menus.js file?
Is it really possible to do a fragment (MenuFragment) outside of the query like this? To me it looks like a small typo. |
try it and see the result |
Same problem ! I already install all plugins but I'm not getting data |
This is my header component --
`
import { isEmpty } from "lodash";
import Nav from "./Nav";
const Header = ({ headerMenus }) => {
// console.log(headerMenus); <- Here i get the menus
if (isEmpty(headerMenus)) {
return null;
}
return (
//<Header> // <Nav headerMenus = {headerMenus}/> // </Header>
);
};
export default Header;
`
when I send data through props to nav I am not getting any data in nav component please help here the code of Nav
`
const Nav = ({headerMenus}) =>{
// console.log(headerMenus); <~~ Not getting data here so i can't return anything through this
return;
};
export default Nav;
`
The text was updated successfully, but these errors were encountered: