Giter Site home page Giter Site logo

hash-source's People

Contributors

will-stone avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

hash-source's Issues

Missing Types

Hi, I'm trying to incorporate this into a Typescript project that uses reach-router, however, it seems that there is no type declarations for this module, is there one (none found under @types/hash-source)? It would be pretty useful, otherwise I cant really use it.

TypeScript error with reach-router 1.2.1

Hi, thanks for providing the hash source for react router. Came across a TypeScript problem while incorporating it in my project:

TypeScript error: Argument of type '{ readonly location: { pathname: string; search: string; }; addEventListener(name: any, fn: (this: Window, ev: any) => any): void; removeEventListener(name: any, fn: (this: Window, ev: any) => any): void; history: { ...; }; }' is not assignable to parameter of type 'HistorySource'.
  Types of property 'location' are incompatible.
    Type '{ pathname: string; search: string; }' is not assignable to type 'WindowLocation'.
      Type '{ pathname: string; search: string; }' is missing the following properties from type 'Location': ancestorOrigins, hash, host, hostname, and 7 more.  TS2345

    24 | import ErrorBoundary from "./ErrorBoundary"
    25 | 
  > 26 | const history = createHistory(createHashSource())

Any idea? Using reach-router 1.2.1 right now.

Using hash routing with reach-router navigate API

Hi,

I have just integrated your lib in my project, and Links are working fine, but navigating programatically is not working (ie, navigate("/projects");).

Is this known? Are there any workarounds?

Thanks!

Incompatible React versions

First of all, thank you for this little package that I've been using for a moment.
Sadly, I've met an issue with this package.
With newer React version, this package doesn't seems to work properly : the URL get updated but the page doesn't reload / change.

I've been using it with React 16.5.2, but few month ago when I've tried to upgrade to React 16.6 I got this issue that I'm having now trying to upgrade to React 16.7.0.alpha.2.

Doesn't seems to work with the latest stable version of React too

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.