You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same is true for delete, with ui: { hideDelete: true}, and graphql: {omit: {delete: true}},.
Create/delete should stay hidden whenever ui.hideCreate/ui.hideDelete is true. graphql.omit.* should only be a fallback, and not affect the hiding when the ui.* settings are explicitly set.
I don't blame the ternary expression though, I think our use of inverted boolean logic (hide*, omit) is a pattern that is repeatedly causing downstream [and upstream] errors.
Open browser. Create first user, navigate to
/posts
. Observe create button.Edit
schema.ts
, add tolists.Post
a sectionui: { hideCreate: true },
.Observe browser page hide create button.
Add section
graphql: {omit: {create: true}},
.Observe browser page start showing create button again.
Same is true for delete, with
ui: { hideDelete: true},
andgraphql: {omit: {delete: true}},
.Create/delete should stay hidden whenever ui.hideCreate/ui.hideDelete is true.
graphql.omit.*
should only be a fallback, and not affect the hiding when theui.*
settings are explicitly set.Current dependencies from
yarn create-app
:Earlier related issue: #8714 (PR #8715).
The text was updated successfully, but these errors were encountered: