
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@jtalton/observable-collections-hooks
Advanced tools
Collections of items that emit change events.
Collections are designed to be an efficient way to manage collections of items.
Changes to a collection are emitted as events that other collections can listen and react to.
Instead of filtering, searching, sorting, and paging a whole array anytime there is a change, collections will only filter, search, sort, and page the changes. This makes collections much more efficient and scalable.
Collections bypass much of the react state management for efficiency. Only when something changes that affects the rendered state will the collections emit state change.
Collections have a set of react hooks for managing collections and state.
const [collection] = useState(() => new Collection(item => item.id))
const { selected, selectedCount } = useSelected(collection)
cosnt { filtered, filteredCount, setFilterFn } = useFiltered(collection)
cosnt { searched, searchedCount, search, setSearch } = useSearched(filtered)
const { sorted, sortedCount, setSortFn } = useSorted(searched)
const { paged, pagedCount, page, setPage, pageSize, setPageSize } = usePage(sorted, 1, 10)
const items = useItems(paged)
return (
<table>
{items.map(items => (
<tr key={item.id}>
{columns.map(cell=>(
<td>{cell}</td>
))}
<tr>
))}
</table>
)
FAQs
Collections of items that emit change events.
We found that @jtalton/observable-collections-hooks demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.