React-router: New version breaks router `replace`

Created on 13 Sep 2016  路  2Comments  路  Source: ReactTraining/react-router

Version

2.8.0

Test Case

http://jsbin.com/ciqurodeda/1/edit?html,js,output

Steps to reproduce

  • Replace query with string: replace({ pathname: '/', query: { name: 'meow' } })

    Expected Behavior

  • Assert name is in url once

  • Assert value comes back as string meow

    Actual Behavior

  • Assert name is in url twice

  • Assert value comes back as array ['meow', 'meow']

    Additional Information

This behavior does not happen in 2.7.0 and is likely related to this line.

Most helpful comment

Fixed in 2.8.1

All 2 comments

Fixed in 2.8.1

Thanks!

Was this page helpful?
0 / 5 - 0 ratings