Code Monkey home page Code Monkey logo

query-param-store's People

Contributors

brocco avatar dependabot[bot] avatar iliaidakiev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

brocco

query-param-store's Issues

Default values for multi query param

If you define a multi query param and leave the value empty (value: ''), when you load the query params you get an array with one element: param: [""] or param:[0] if you are using typeConverter: Number.
This leads to misleading query param data.

Feature Request - Support case insensitive query params

Current Behavior

When parsing query parameters based upon the configuration, the matching is done using case sensitive logic.

Desired Behavior

The query parameter parsing should allow for the option to be parsed in a case insensitive manner.
This should be opt-in functionality based upon a conditional flag.

Other Information

This request is created based upon version: 2.3.0

Unsupported value removal removes allowed ones as well

When we have a config like:

role: {
          value: '',
          allowedValues: ['Admin', 'Client'],
          multi: false,
          typeConvertor: String,
},
somethingElse: ''

and we open a url like some/resource?role=test&somethingElse=sometext
we should be redirected to some/resource?somethingElse=sometext instead of removeing everything and navigating to some/resource.

Update interface

Currently the IQueryParamsStoreRoute interface has the queryParamsConfig param set as optional. Not having it on some routes leads to confusing errors.

Error when navigating to a route with no config

When navigating from a route with a set queryParamsConfig and active query params to a route with no config, you get the following error:
TypeError: Cannot read property 'allowedValues' of undefined

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.