Pearl Zhu Zeng

33 posts

Pearl Zhu Zeng banner
Pearl Zhu Zeng

Pearl Zhu Zeng

@pearlZsquare

Software Engineer @JustSift Love coding, cooking, and learning languages!

Ann Arbor, MI Katılım Mart 2015
104 Takip Edilen57 Takipçiler
Pearl Zhu Zeng retweetledi
SViccari
SViccari@SViccari·
Remote meeting practices that prevent overlapping talk & give everyone an opportunity to speak. 💙Encourage mute by default. 💙Type "next" in chat to signal you'd like to speak 💙Meeting organizer calls on the next person to speak What remote mtg practices do you find helpful?
English
3
12
32
0
Pearl Zhu Zeng retweetledi
MJ
MJ@mjackson·
Is anyone aware of a Jest matcher for React elements that will let you write: expect(testInstance.toJSON()).toContain(<Text>hi</Text>) or something similar? Been searching around but I can't find anything. But it'd be awesome to be able to match elements. /cc @rickyfm 🙏
English
5
1
11
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Wrote a tutorial for ReSift, an open-source data-fetching library we use everyday at work. Check it out if you're looking for a REST-oriented solution for handling data fetching in React and let me know what you think! resift.org/docs/tutorial/… #React
English
0
0
1
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Still curious why this bug only happens in safari when the text include emojis. The truncated text become invisible when we expand it. Our comp uses a hidden div to calc line height. Makes me wonder if different browsers handle the mounting of react components differently? #React
English
0
0
0
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Have you ever experienced debugging javascript code for hours then realized that a simple line of css can fix the bug? I was figuring out why a multiline truncate react component somehow has part of the text invisible in Safari and ended up fixing it by adding a z-index 🤦‍♀️#webdev
English
1
3
7
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Bug fixed! It turns out `onShouldStartLoadWithRequest` only works correctly if there’s a full page reload. So to fix this problem, we added force refresh to our web app's react router when it detects mobile. #reactnative
Pearl Zhu Zeng tweet media
English
0
1
1
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Instead, it led me back to an 'in between page'—the webpage that the link on the initial webview links to (for which I diverged to a native view using `onShouldStartLoadWithRequest`). Therefore, I need to customize the link on the back button to go to the initial page. Ideas?
English
1
0
0
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
How can we custom link native back button? I put a webview in my native app and used `onShouldStartLoadWithRequest` for a link on it that pushes a native page on top. Then on the native page I expect the back button leads me back to the previous page, but it doesn't.#reactnative
English
1
1
0
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Had to use a library that only has apis in hooks in a long class component. HOCify saved me from rewriting the component into functional component. HOCify even allowed me to compose the `useEffect` hook with another hook! Cool stuff, check it out! github.com/ricokahler/hoc… #React
English
0
1
1
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
My teammate @ricokahler put tons of hard work into ReSift, a data fetching library for React. He's been very thoughtful about the API, performance considerations, and its adaptability to what's coming in React. Happy to see the release of v0.1.0 🎉
English
0
0
0
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
@ricokahler @gurlcode Such a great talk! Jenn really helped put a lot of component writing strategies in context and introduced them in a way that makes this methodology sticky.
English
0
0
0
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
The new undo/redo feature for Notes on iOS 13 is very nice!
Pearl Zhu Zeng tweet media
English
0
0
1
0
Pearl Zhu Zeng
Pearl Zhu Zeng@pearlZsquare·
Thank you to our @hackerfellows instructor @JasonSwett for giving me the Refactoring Book – the source of function extraction, encapsulate collection and many helpful refactoring techniques. Excited to follow the examples in the book and dive deeper! @martinfowler
Pearl Zhu Zeng tweet mediaPearl Zhu Zeng tweet media
English
1
0
7
0
Pearl Zhu Zeng retweetledi
Rachel Andrew
Rachel Andrew@rachelandrew·
@chriscoyier Flexbox is for one dimensional layout. A row OR a column. Grid is for two dimensional layout. Rows AND columns.
English
11
44
299
0