Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
🎯
Focusing
Ben Munat
yukster
🎯
Focusing
Shipping software and solving hard problems since 2004. Currently a Senior Software Engineer at Weedmaps.
11
followers
·
8
following
@GhostGroup
Portland, OR
http://ben.munat.com/
Twitter
@yukster1
View GitHub Profile
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
All gists
1
Sort:
Recently created
Sort options
Recently created
Least recently created
Recently updated
Least recently updated
1 file
0 forks
0 comments
0 stars
yukster
/
react nav weirdness.js
Last active
March 14, 2021 22:48
View
react nav weirdness.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// App.js:
export default function App(props) {
const [isLoadingComplete, setLoadingComplete] = useState(false);
const [state, dispatch] = React.useReducer(
(prevState, action) => {
switch (action.type) {
case "RESTORE_TOKEN":
return {
...prevState,
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.