justinyahin / okupter-repos Goto Github PK
View Code? Open in Web Editor NEWMonorepo for okupter.com posts, tutorials and guides
Home Page: https://www.okupter.com
Monorepo for okupter.com posts, tutorials and guides
Home Page: https://www.okupter.com
Your guide and this repo are not in sync.
The await.client.chain.query.post method is broken, thanks to chain not being defined.
You literally published this repo 2 months ago.. and it's already out of date. I'd love to get your example working as it seems to be the easiest method I've seen yet.
I want to make a small suggesion based on the experience I've had with this.
When we have to deal with multiple search params, the best way to update the search params is following:
// this one is for a select field
const handleCourseLevelChange = () => {
let query = new URLSearchParams($page.url.searchParams.toString());
query.set('level', selectedCourseLevel);
goto(`?${query.toString()}`);
}
// this one is also for a select field
const handleCourseTagChange = () => {
let query = new URLSearchParams($page.url.searchParams.toString());
query.set('tag', selectedCourseTag);
goto(`?${query.toString()}`);
}
// this one is for an input field, the keepFocus: true maintains the focus on the input field after goto is executed
const handleKeywordChange = () => {
let query = new URLSearchParams($page.url.searchParams.toString());
query.set('keyword', keyword);
goto(`?${query.toString()}`, {
keepFocus: true
});
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.