mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
Fix blog post link (#47560)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47560 Reviewed By: elicwhite Differential Revision: D65790732 Pulled By: rickhanlonii fbshipit-source-id: 7156f85c7525cec31aa80fb0757d853d517bbef8
This commit is contained in:
parent
1e5286866a
commit
62a4e46551
@ -299,8 +299,8 @@ void RCTUnsafeExecuteOnMainQueueSync(dispatch_block_t block)
|
||||
|
||||
static void RCTUnsafeExecuteOnMainQueueOnceSync(dispatch_once_t *onceToken, dispatch_block_t block)
|
||||
{
|
||||
// The solution was borrowed from a post by Ben Alpert:
|
||||
// https://benalpert.com/2014/04/02/dispatch-once-initialization-on-the-main-thread.html
|
||||
// The solution was borrowed from a post by Sophie Alpert:
|
||||
// https://sophiebits.com/2014/04/02/dispatch-once-initialization-on-the-main-thread
|
||||
// See also: https://www.mikeash.com/pyblog/friday-qa-2014-06-06-secrets-of-dispatch_once.html
|
||||
if (RCTIsMainQueue()) {
|
||||
dispatch_once(onceToken, block);
|
||||
|
Loading…
Reference in New Issue
Block a user