Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

feat: handle navigating with both with both key and name #83

Merged
merged 2 commits into from
Aug 29, 2019

Conversation

osdnk
Copy link
Member

@osdnk osdnk commented Aug 28, 2019

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 28, 2019

Codecov Report

Merging #83 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
+ Coverage   93.32%   93.48%   +0.16%     
==========================================
  Files          31       31              
  Lines         659      660       +1     
  Branches      166      160       -6     
==========================================
+ Hits          615      617       +2     
  Misses         37       37              
+ Partials        7        6       -1
Impacted Files Coverage Δ
packages/routers/src/StackRouter.tsx 96.82% <100%> (+1.74%) ⬆️
packages/core/src/CommonActions.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdbf1e9...e7abda1. Read the comment docs.

Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

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

LGTM. Can you also update the signature of the navigate function in NavigationProp types?

(payload.hasOwnProperty('key') && payload.hasOwnProperty('name')) ||
(!payload.hasOwnProperty('key') && !payload.hasOwnProperty('name'))
) {
if (!payload.hasOwnProperty('key') && !payload.hasOwnProperty('name')) {
Copy link
Member

Choose a reason for hiding this comment

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

I think we also need update the signature of the first overload

@satya164 satya164 merged commit 6b75cba into master Aug 29, 2019
@satya164 satya164 deleted the @osdnk/navigate-with-specific-key-and-name branch August 29, 2019 07:46
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