1.3.8 • Published 3 years ago

with-location v1.3.8

Weekly downloads
62
License
MIT
Repository
-
Last release
3 years ago
NameDescriptionsArgs
getFromGet query value as string or object (will return a merged object)object or string
pushToAdd a new value to the query stringany
clearByNameCreate a curried callback for clear-style UI elementsfn => event
handleSearchCreate a submit callback for handling search inputs (will delete paged queries)fn => event
getAllReturns an object of all params in play
import React from 'react';
import { withLocation, LocationProvider } from 'with-location';

const AsHoc = withLocation((props) => {
  // props now includes the location decorators
  return null;
});

const AsComponent = (props) => (
  <LocationProvider>
    {(utils) => {
      // utils now includes the location decorators
      return null;
    }}
  </LocationProvider>
);
1.3.8

3 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago