Skip to content

Conversation

@ccheever
Copy link
Contributor

Ex. When console.log or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 19, 2015
@ide ide self-assigned this May 19, 2015
@brentvatne
Copy link
Collaborator

@vjeux - this looks good to me, do you see any issues with pulling this in?

@brentvatne brentvatne changed the title Also call the original console methods if they exist [JS Polyfills] Also call the original console methods if they exist Jun 1, 2015
@ide ide assigned vjeux and unassigned ide Jun 2, 2015
ccheever and others added 7 commits June 29, 2015 16:55
Adds in install instructions for `react-timer-mixin` to the `TimerMixin` docs.
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.
It's now moved to ./packager/react-packager/src/DependencyResolver/polyfills/console.js
@vjeux
Copy link
Contributor

vjeux commented Sep 23, 2015

Sorry for the super long review time :x Can you get rid of all the unrelated changes and rebase? Thanks!

@ide
Copy link
Contributor

ide commented Sep 23, 2015

@vjeux here is a rebased version: #2486

@ide
Copy link
Contributor

ide commented Sep 24, 2015

merged (w original author attribution!)

@ide ide closed this Sep 24, 2015
ryanlntn pushed a commit to ryanlntn/react-native that referenced this pull request Aug 9, 2022
* update package.json files and yarn lock

* yarn prettier --fix

* Fix remaining yarn lint issues

* Fix integration CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants