
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
@solid-primitives/page-visibility
Advanced tools
createPageVisibility
- Creates a signal with a boolean value identifying the page visibility stateusePageVisibility
- A singleton 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 singleton 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 388 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.