The Wayback Machine - https://web.archive.org/web/20200711042816/https://github.com/topics/decorator
Skip to content
#

decorator

Here are 348 public repositories matching this topic...

tizmagik
tizmagik commented Aug 19, 2019

I've been meaning to provide this as importable within react-tracking via something like: import track, { mockTrackEvent, TrackingPropType } from 'react-tracking/mock'; but haven't had a chance yet. PRs welcome! 😁

/* __mocks__/react-tracking.js */

const PropTypes = require('prop-types');

const mockTrackEvent = jest.fn();

module.exports.TrackingPropType = PropTypes.shape();
madpin
madpin commented Nov 1, 2019

Well, my use case is:
I have a function that queries the database, the input is the database alias and the query.
It's working great, but I just saw that the cache size will grow indefinitely, right?
My idea was to keep track of the stale date, and check for all elements of the object if any was already "staled", and delete it.
Just to keep the filesize at a minimum.

I never worked with Cla

Improve this page

Add a description, image, and links to the decorator topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the decorator topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.