fbjs icon indicating copy to clipboard operation
fbjs copied to clipboard

A collection of utility libraries used by other Meta JS projects.

Results 96 fbjs issues
Sort by recently updated
recently updated
newest added

The event.preventDefault() in onWheel breaks the browser zoom in / out while holding the ctrl key and scrolling using the mouse wheel. A fix for this can be done if...

CLA Signed

I use it like this: ``` var token = localStorage.getItem('jwtToken'); const g = require('../../misc/settings').graphql; Relay.injectNetworkLayer( new RelayNetworkLayer('http://'+g.host+':'+g.port+'/graphql', { headers: (token ? { Authorization: 'Bearer ' + token } : {}),...

It turns out that browsers can help you view a backtrace from a caught exception, but this only seems to be documented in this GitHub thread https://github.com/facebook/react/issues/4216#issuecomment-115053221 Add instructions for...

CLA Signed

Please see the corresponding PR that adds yellow box to react-dom: facebook/react#7360.

CLA Signed

Else the `scrollable.scrollHeight` will always be the same as the `viewport.clientHeight` which causes the max scroll Y position to always be `0` (the top of the page).

CLA Signed

See [react/#812](https://github.com/facebook/react/issues/812). Naive benchmarks show nearly 100% performance increase in server rendering performance. Benched and built on 0.14.3 tag. Sizes: ``` raw gz Sizes 1189 635 build/react-dom-server.js 725 438 build/react-dom-server.min.js...

CLA Signed
GH Review: needs-revision

@zpao, I was (fully) porting React from grunt to gulp, and I figured that this makes sense as a gulp plugin and that it should live here. cc: @cpojer

CLA Signed

Case sensitivity issue from fbjs causing build to fail. ERROR in ./node_modules/fbjs/lib/setImmediate.js Module not found: Error: [CaseSensitivePathsPlugin] `/Users/KaisMi01/sdev/capture-utility/node_modules/fbjs/lib/setimmediate.js` does not match the corresponding path on disk `setImmediate.js`.

In `areEqual`, there is a branch where the [`valueOf` both objects is compared if supported](https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/areEqual.js#L90), but the check for if it's supported raises an exception if the objects don't have...