
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@solid-primitives/page-visibility
Advanced tools
createPageVisibility
- Creates a signal with a boolean value identifying the page visibility stateusePageVisibility
- A shared-root alternative.npm install @solid-primitives/page-visibility
# or
yarn add @solid-primitives/page-visibility
createPageVisibility
Creates a signal with a boolean value identifying the page visibility state.
import { createPageVisibility } from "@solid-primitives/page-visibility";
const visible = createPageVisibility();
createEffect(() => {
visible(); // => boolean
});
usePageVisibility
usePageVisibility
is a shared root primitive. It is providing the same signal as createPageVisibility
, but the event-listener and the signal are shared between dependents, making it more optimized to use in multiple places at once.
import { usePageVisibility } from "@solid-primitives/page-visibility";
const visible = usePageVisibility();
createEffect(() => {
visible(); // => boolean
});
See CHANGELOG.md
FAQs
Primitive to track page visibility
The npm package @solid-primitives/page-visibility receives a total of 335 weekly downloads. As such, @solid-primitives/page-visibility popularity was classified as not popular.
We found that @solid-primitives/page-visibility demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.