Comments (3)
Thinking about this, if we have the following options now that the author
object returned by WP GraphQL has changed
Option 1: Pass contents of node
<Avatar author={author.node} />
function Avatar({author}) {
return author.avatar.url;
}
Option 2: Pass object that contains node
<Avatar author={author} />
function Avatar({author}) {
return author.node.avatar.url;
}
I think Option 2: Pass object that contains node
is the better choice (though Option 1: Pass contents of node
is the approach I was trying to take yesterday but in retrospect I think it was the wrong move)
from nextjs-wordpress-starter.
@salcode I'm good w/ Option 2
from nextjs-wordpress-starter.
@dcooney I know you have essentially this same fix in commit abc5ca9 in the feature/menus branch. Unless we're ready to merge that branch into main
(which I don't think we are yet). I'd like to fix this here in main
and then we can merge these changes in the feature/menus
branch.
from nextjs-wordpress-starter.
Related Issues (20)
- GetStaticPaths should not be fetching 10,000 nodes HOT 1
- TypeError: Cannot set properties of undefined (setting 'parent') HOT 12
- WP GraphQL Gutenberg HOT 3
- Spacer Block Error
- This is just an optimization
- (Can be my local env) but documenting the issue HOT 2
- Libraries Upgrade to React 18
- Performance Issue: Potentially making the theme useless in a production setting HOT 1
- CPT: Expected type IvIdType, found SLUG
- wp-graphql-gutenberg plugin is broken
- WDS Headless Blocks plugin breaks Gutenberg editor HOT 2
- composer json is not ownloading
- TypeError: Cannot set properties of undefined (setting 'parent') HOT 1
- Error when activating WDS plugins HOT 3
- TypeError: Cannot set properties of undefined (setting 'parent') HOT 5
- Gallery and other core gutenberg blocks broken because of 'innerBlocks'
- TypeError: validateThemeColors is not a function
- Plugins Activations & Block Display Errors HOT 1
- Node-based script required for redirection
- code 127.
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 nextjs-wordpress-starter.