FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 113 forks source link

Missing pathname Flow annotation #287

Open dbalatero opened 6 years ago

dbalatero commented 6 years ago

With the latest version of Flow and the latest redux-little-router (15.1.1), I am getting this Flow error:


Cannot get href.pathname because property pathname is missing in object literal [1].

 [1]  74|   return {
      75|     ...href,
      76|     ...mergedQuery
      77|   };
        :
     100|     // Ensure the href has both a search and a query when needed
     101|     const normalizedHref = normalizeHref(rawHref);
     102|     const href = contextifyHref(normalizedHref, location, persistQuery);
     103|     const isActive = href.pathname === location.pathname;
     104|     const activeRest = (isActive && activeProps) || {};
     105|
     106|     const clickHandler = e =>

For now, I'm going to disable flow checking in this folder, but this might be an issue for others as well.