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

[v2] Deprecate pathContext in favor of pageContext #3515

Merged
merged 4 commits into from
Jan 26, 2018

Conversation

calcsam
Copy link
Contributor

@calcsam calcsam commented Jan 13, 2018

Switching page context for path context to improve the API re: #1456

@ghost ghost assigned calcsam Jan 13, 2018
@ghost ghost added the review label Jan 13, 2018
@calcsam calcsam changed the title Deprecate path context 2 Deprecate pathContext in favor of pageContext Jan 13, 2018
@KyleAMathews KyleAMathews changed the title Deprecate pathContext in favor of pageContext [v2] Deprecate pathContext in favor of pageContext Jan 14, 2018
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this!

contextKey = `layoutContext`
result[`layoutContext`] = pageOrLayout.context
} else {
result[`pathContext`] = pageOrLayout.context // deprecated!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just do a breaking change — this will mean loading the same data twice into the browser which could get expensive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@calcsam calcsam force-pushed the deprecate-path-context-2 branch from 6aee25f to 9659fa1 Compare January 26, 2018 05:06
@calcsam
Copy link
Contributor Author

calcsam commented Jan 26, 2018

Changed this, going to merge into v2 branch.

@calcsam calcsam merged commit 0e8bd14 into v2 Jan 26, 2018
@ghost ghost removed the review label Jan 26, 2018
@KyleAMathews KyleAMathews deleted the deprecate-path-context-2 branch January 26, 2018 05:21
@TuckerWhitehouse TuckerWhitehouse mentioned this pull request Feb 16, 2018
13 tasks
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