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

Possible bug with Feature Toggles #179

Closed
lautarodragan opened this issue Aug 6, 2018 · 7 comments
Closed

Possible bug with Feature Toggles #179

lautarodragan opened this issue Aug 6, 2018 · 7 comments
Assignees
Labels

Comments

@lautarodragan
Copy link
Member

I think the ft query params isn't being re-read when a redirect is performed by the application rather than by the user, which leads to behavior such as:

  • Register with FT
  • Get redirected to home without FT
  • Still see things that should only be seen with FTs but URL has no FT

This behavior can be see in the Angelou PR and its deploy preview.

@geoffturk @kennylavender

@lautarodragan lautarodragan self-assigned this Aug 6, 2018
@kennylavender
Copy link

Good Catch. The function that is calculating features and FeatureToggles component needs to be inside the route so that it runs on route changes. It was designed to be wrapped around each page individually so the function runs on route changes. Not having used the library in a while myself I actually forgot about that, ¯_(ツ)_/¯, but it should hopefully be an easy fix in the app. It's something we need to document in the library as well.

@geoffturk
Copy link
Contributor

geoffturk commented Aug 6, 2018

@jwicks31 Can you log this issue in the react-feature-toggles repo and then close it here when it is fixed? Thanks.

@geoffturk geoffturk added the bug label Aug 6, 2018
@kennylavender
Copy link

@geoffturk @jwicks31 as I explained above this is an issue with the app usage of react-feature-toggles. Not a react-feature-toggle bug.

@geoffturk
Copy link
Contributor

geoffturk commented Aug 7, 2018

@kennylavender OK, sorry. I missed that detail.

Jesse has logged this in the RFT repo: paralleldrive/react-feature-toggles#175

@geoffturk geoffturk assigned jwicks31 and unassigned lautarodragan Aug 7, 2018
@geoffturk
Copy link
Contributor

Reassigning to @jwicks31 so he can fix.

@kennylavender
Copy link

@geoffturk No worries :D

@ericelliott
Copy link

Reopen if this is still a pressing issue.

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

No branches or pull requests

5 participants