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

Configure Nav items based on context #887

Closed
wants to merge 10 commits into from

Conversation

taras
Copy link
Member

@taras taras commented Jan 21, 2024

Motivation

#865 is held up because the AppHTML component needs to know Nav-specific things. I wanted to get it unblocked.

Approach

Introduce DocsContext - a boolean that evaluates to true when in Docs. I use this in the header to determine where to show the Nav header items.

I was initially trying to wrap the operation in another to set the context. This felt natural because that's how I would do it in React. In Effection, I can override the context in the operation where I need it overwritten, which is much more convenient.

@taras taras changed the base branch from v3 to dl/fix-docs-scroll-styles January 21, 2024 20:20
@taras taras changed the title Tm/use context for nav Configure Nav items based on context Jan 21, 2024
@taras taras requested a review from cowboyd January 21, 2024 20:25
@wKich wKich force-pushed the dl/fix-docs-scroll-styles branch from 666cfbb to 4a3fa90 Compare March 5, 2024 06:56
@taras taras closed this Mar 5, 2024
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

Successfully merging this pull request may close these issues.

2 participants