When entering words to look up, the query param is updated (with debouncing).
Given the last point above, it's no longer necessary to manually provide a share link because you can now copy and paste the URL from the browser without it:
Let's keep the manual copy button for now anyway, to encourage people to share Typey Type lookup links.
This PR moves
lookupTerm
out of app state to continue the work of breaking upapp.js
.Changes:
app.js
, if the location pathname includes/lookup
, we no longer clear the query paramsGiven the last point above, it's no longer necessary to manually provide a share link because you can now copy and paste the URL from the browser without it:
Let's keep the manual copy button for now anyway, to encourage people to share Typey Type lookup links.
The PR also changes:
debounce
function to its own file