-
Notifications
You must be signed in to change notification settings - Fork 953
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
feat(hack): in app storage buster #6886
Conversation
This is not related to your changes directly but how do we feel about limiting these dev features to only dev environments and stripping it from production builds? |
It can be nice for us to be able to test this stuff on production if we are debugging. Are you thinking to limit users or for reducing bundle size? |
Mostly reducing the bundle size, but it's only a 5 kB change so far so it's fine for now, but if we add more dev tools it might be nice to limit them. |
Is there a way we could only download them if the query param is active? |
Maybe with a dynamic import, I can give it a try later on and if it works I can open a PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I'm sure I will be using this feature 🙌
<button | ||
className="mt-2 self-end rounded bg-green-900 p-1 text-xs text-white" | ||
onClick={handleClearLocalStorage} | ||
> | ||
Clear Local Storage | ||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we maybe increase the text size a bit? It is very small
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 bumped it up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🥳
Issue
The dev process on feature flagged stuff can be quite slow to delete local storage keys
Description
This PR adds a new button to the featureflags manager (find with the ff query param,
app.el...com/map?ff
)The button clears all local storage and reloads the page.