Giter VIP home page Giter VIP logo

okupter-repos's Introduction

Justin Ahinon

okupter-repos's People

Contributors

justinyahin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

okupter-repos's Issues

Repo already outdated? chain is not defined.

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.

what if i have to deal with multiple search params

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
        });
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.