Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@-ft/use-memo-object

React useMemoObject hook

Published23 Sept 2023
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

use-memo-object - react useMemoObject hook

memo the context value conveniently

Usage

import { useMemoObject } from '@-ft/use-memo-object';

function AppContextProvider({ children, something }) {
  const someValue = useSomeValue();

  const value = useMemoObject({ something, someValue });
  // instead of...
  const v = useMemo(() => ({ something, someValue }), [something, someValue]);

  return (
    <AppContext.Provider value={value}>
      {children}
    </AppContext.Provider>
  );
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.2.0peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-o1vq+X7vTWal6jb+VmMDc87G8TdDFOeEClvxTCbfnaqMGfLuwk5rdjMvKMRWYYoIPsNfjWRbaRDg70RlvoDoRQ==",
  "shasum": "964ff420f398c2c7a3b67b25734c157469abddea",
  "tarball": "https://registry.npmjs.org/@-ft/use-memo-object/-/use-memo-object-0.1.0.tgz",
  "fileCount": 4,
  "unpackedSize": 1331,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCICODDEjYVFkdBqXRHpusrxCMQvTBlPZWBIs67mMa9TUlAiAfxdk4KeEyp8PdP4QnqdZ1G5ehpi+3IIA4gSOuZIOzvg=="
    }
  ]
}

Repository

PENDING
42ts/-ft-use-memo-object

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:56378a89fa8aeb6687d4a9d1a348b8791c6371c810e55ef32d7f4d83f1ca2db7

Other collected versions

View all collected versions →