Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

open learn guide in new tab #81

Closed
wants to merge 1 commit into from
Closed

open learn guide in new tab #81

wants to merge 1 commit into from

Conversation

pbteja1998
Copy link
Member

  • Removed Link and added href attribute to Card
  • Now Learn Guide opens in new tab

@coderplex-bot
Copy link
Collaborator

Deploy preview ready!

Built with commit e25190c

https://deploy-preview-81--coderplex.netlify.com

@pbteja1998
Copy link
Member Author

fixes #79

href={`/learn/subject?id=${subject.subjectId}`}
as={subject.url}
<Card
href={subject.url}
Copy link
Contributor

@vinaypuppal vinaypuppal Nov 7, 2017

Choose a reason for hiding this comment

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

@pbteja1998 As we are using not using <Link/> component we loose client side navigation i.e the client sends a request to sever for this new page to load. Which is waste as we can reuse previously loaded client side bundle (where as with client side routing we only load js bundle data required to show new page). You can see this by opening chrome devtools -> Network Tab and compare above demo link and https://coderplex.org/learn


So we don't want to remove <Link/> component and it is not what causing this issue. Semantic-ui-react's <Card/> is what preventing right-click so can you debug whats wrong with it. Thanks

Copy link
Contributor

@vinaypuppal vinaypuppal left a comment

Choose a reason for hiding this comment

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

So our team's official policy (for now) is:
We only use Yarn as our official Node package manager, and so we will only commit yarn.lock files.

So please use Yarn instead of npm we don't want both yarn.lock and package-lock.json files in the repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants