
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@catamphetamine/found
Advanced tools
Extensible route-based routing for React applications.
This is a fork of the original found
package with some changes:
redux
with a basic stubs of it. The rationale is that the redux
that was used under the hood by this package would conflict with the redux used by the application itself.
farce
dependency was replaced with navigation-stack
which is a fork of farce
with some changes.
found
router ignores any navigation actions that have been dispatched before its componentDidMount()
has been called. Now it exports a client-side-only onRouterReady()
function that could be used to execute code only after the router is ready to process navigation actions.
found-scroll
code and rewrote it in React hooks to fix a [bug](https://github.com/4Catalyzer/found-scroll/issues/382) in React strict mode.
activeClassName
How found
works in a nutshell:
navigation-stack
's (or farce
's) UPDATE
Redux action to get notified on the current location change.
<Router/>
React element as a match
property.
found
starts "resolving" the matched route, e.g. it will call getData
function of each route segment and wait for those to finish. See async resolveMatch()
method of <BaseRouter/>
component in createBaseRouter.tsx
file, which calls the code from resolver.ts
file.
resolvedMatch
property is passed to the <Router/>
React element (similar to match
property).
<Link/>
React component) has access to RouterContext
(via useRouter()
hook) that provides match
and router
properties where match
has the info on the matched route and router
has a few utility functions such as addBasePath()
(see createStoreRouterObject.ts
file for the list of router
properties).
Found is a router for React applications with a focus on power and extensibility. Found uses static route configurations. This enables efficient code splitting and data fetching with nested routes. Found also offers extensive control over indicating those loading states, even for routes with code bundles that have not yet been downloaded.
Found is designed to be extremely customizable. Most pieces of Found such as the path matching algorithm and the route element resolution can be fully replaced. This allows extensions such as Found Relay to provide first-class support for different use cases.
Found uses Redux for state management and Farce for controlling browser navigation. It can integrate with your existing store and connected components.
FAQs
Extensible route-based routing for React applications
We found that @catamphetamine/found demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.