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

Upgrade to next@9 in app-next #1378

Merged
merged 3 commits into from
Jul 9, 2019
Merged

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Jul 9, 2019

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2019

🦋 Changeset is good to go

Latest commit: 09aba0d

We got this.

Not sure what this means? Click here to learn what changesets are.

@emmatown emmatown requested review from timleslie and jesstelford and removed request for jesstelford and timleslie July 9, 2019 01:43
@emmatown emmatown self-assigned this Jul 9, 2019
@emmatown
Copy link
Member Author

emmatown commented Jul 9, 2019

Just realised next-app has native support for next-routes, going to remove that now.

@emmatown emmatown removed their assignment Jul 9, 2019
@emmatown emmatown requested review from timleslie and jesstelford July 9, 2019 03:24
Copy link
Member

@JedWatson JedWatson left a comment

Choose a reason for hiding this comment

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

Looks good to me @mitchellhamilton

I'm actually not really happy about the change to the Link component now we've lost next-routes, I can see this becoming a nightmare to maintain correctly:

<Link href={`/event/[id]?hex=${hex}`} as={`/event/${id}?hex=${hex}`} passHref>

The whole as API of Next links has always really bugged me. But that's a Next issue, and feels like something we could deal with at the app level with a custom Link component or something when it's important.

Let's get this shipped! 🎉

@@ -50,7 +50,8 @@ const EventItem = event => {
}}
>
<div css={{ maxHeight: 400, overflow: 'hidden' }}>
<Link route="event" params={{ id, hex }} passHref>
{/* TODO: this might be wrong */}
<Link href={`/event/[id]?hex=${hex}`} as={`/event/${id}?hex=${hex}`} passHref>
Copy link
Member

Choose a reason for hiding this comment

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

I have no idea why the hex is here, but since it's not a change, I'm not worried about that for this PR

@JedWatson
Copy link
Member

Update: regarding that awkward href | as api, next is on it: vercel/next.js#7329

@JedWatson JedWatson merged commit df3d9ef into master Jul 9, 2019
@JedWatson JedWatson deleted the upgrade-to-next-9-in-app-next branch July 9, 2019 04:34
Copy link
Contributor

@jesstelford jesstelford left a comment

Choose a reason for hiding this comment

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

Love it 🎉

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.

3 participants