MCPcopy Index your code
hub / github.com/ReactTraining/react-media / wrapInQueryObject

Function wrapInQueryObject

modules/Media.js:191–193  ·  view source on GitHub ↗

* Wraps a single query in an object. This is used to provide backward compatibility with * the old `query` prop (as opposed to `queries`). If only a single query is passed, the object * will be unpacked down the line, but this allows our internals to assume an object of queries * at all times.

(query)

Source from the content-addressed store, hash-verified

189 * at all times.
190 */
191function wrapInQueryObject(query) {
192 return { __DEFAULT__: query };
193}
194
195/**
196 * Unwraps an object of queries, if it was originally passed as a single query.

Callers 1

initializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…