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

fix 2953 (Deep Linking - related) #2976

Merged
merged 1 commit into from Nov 14, 2017
Merged

fix 2953 (Deep Linking - related) #2976

merged 1 commit into from Nov 14, 2017

Conversation

vonovak
Copy link
Member

@vonovak vonovak commented Nov 14, 2017

As reported in #2953, deep linking with uri that contains query params does not work anymore on master. query params are not passed down the state params.
inputParams is by default equal to {} as can be seen here, therefore, queryParams returns always {} even if queryString is not empty.

Test plan:
tested by the author of #2953 as seen here

@codecov
Copy link

codecov bot commented Nov 14, 2017

Codecov Report

Merging #2976 into master will decrease coverage by 0.11%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2976      +/-   ##
==========================================
- Coverage    66.8%   66.68%   -0.12%     
==========================================
  Files          51       51              
  Lines        1479     1483       +4     
  Branches      369      370       +1     
==========================================
+ Hits          988      989       +1     
- Misses        385      388       +3     
  Partials      106      106
Impacted Files Coverage Δ
src/routers/StackRouter.js 96.71% <72.72%> (-1.94%) ⬇️

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 fafe68b...6063b72. Read the comment docs.

Copy link

@kelset kelset left a comment

Choose a reason for hiding this comment

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

Since it's already been tested and it's said to fix the issue, I can fast approve it so we can merge :)

@kelset
Copy link

kelset commented Nov 14, 2017

Thanks @vonovak for the fix

@kelset kelset merged commit 44616dd into master Nov 14, 2017
@vonovak vonovak deleted the fix2953 branch November 14, 2017 16:29
RonnieRen pushed a commit to RonnieRen/react-navigation that referenced this pull request Nov 17, 2017
* master: (63 commits)
  Move SafeAreaView out of DrawerNavigatorItems to DrawerSidebar. (react-navigation#2967)
  Allow custom header and back button to use the props from react-navigation (react-navigation#2712)
  Update Guide-Headers.md (react-navigation#2949)
  fix 2953 (react-navigation#2976)
  prevent error `RawText "" must be wrapped in an explicit <Text> compo… (react-navigation#2415)
  Update TabBarBottom to accept styling for animations (react-navigation#2945)
  Improve Contributing Guide (react-navigation#2960)
  Added a guide under intermediate concepts. (react-navigation#2958)
  SafeAreaView - Fix for Web usage (react-navigation#2950)
  Fix 'good first issue' link in README (react-navigation#2919)
  [Docs] Fix Comparisons Link in Readme (react-navigation#2910)
  Export all Flow types from TypeDefinition (react-navigation#2903)
  Fix issue react-navigation#618 - TabBarBottom should hide itself when Keyboard is activated (react-navigation#1764)
  Bump to beta.19
  Add back Header.HEIGHT but with a deprecation warning
  improve wording in router docs (react-navigation#2894)
  add 2nd params argument to StackRouter.getActionForPathAndParams (react-navigation#1623)
  Bump version
  SafeAreaView padding from style prop (react-navigation#2889)
  Safe area example (react-navigation#2890)
  ...

# Conflicts:
#	src/views/CardStack/CardStackStyleInterpolator.js
#	src/views/Header/Header.js
#	src/views/Header/HeaderStyleInterpolator.js
@leethree
Copy link
Contributor

This is a breaking change because this will cause action params to be undefined if inputParams is {}.

@kelset
Copy link

kelset commented Nov 22, 2017

@leethree can you please an issue related to this, if it still happens in beta.21?

@leethree
Copy link
Contributor

@kelset sure! see #3029.

@vonovak
Copy link
Member Author

vonovak commented Nov 22, 2017

@leethree good point. This fix was kinda short-sighted in this respect. Maybe we should change the default inputParams here https://github.com/react-community/react-navigation/blob/d1c434b54c73b6ed17b1642acd6646fbca92c92e/src/createNavigationContainer.js#L87 toundefined but I'm not sure of the side effects it may have...

rpopovici pushed a commit to rpopovici/react-navigation that referenced this pull request Jan 16, 2018
sourcecode911 pushed a commit to sourcecode911/react-navigation that referenced this pull request Mar 9, 2020
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.

None yet

3 participants