The Wayback Machine - https://web.archive.org/web/20200618094605/https://github.com/topics/react-hooks
Skip to content
#

react-hooks

Here are 3,107 public repositories matching this topic...

formik
krichter722
krichter722 commented Apr 19, 2020

🚀 Feature request

Current Behavior

The type ErrorMessage doesn't have an id property.

Desired Behavior

It'd be nice id?: string would be added to the type ErrorMessage and set on the outermost component that serves as error message.

Suggested Solution

Add id={this.props.id} to the outer component in ErrorMessage.

Who does this impact? Who is this

react-native-firebase
react-adaptive-hooks
astronomersiva
astronomersiva commented Nov 20, 2019

Consider this scenario:

My phone is connected to WiFi(4g), the power goes off, and my mobile data(2g) kicks into action. If there were multiple assets fetched for 4g, all their low quality equivalents will now be fetched.
This will also happen when I am travelling between places as my data speed keeps fluctuating.

I am not sure what the solution to this problem is but I believe we shouldn'

Mxchaeltrxn
Mxchaeltrxn commented Mar 1, 2020

Problem

  1. I am unable to drag a note from trash to all notes. I feels like this should be allowed.
  2. Also I think it's a little strange that 'All notes' doesn't actually mean 'all' (does not contain trashed notes and scratchpad).

Solution

  1. Enable a note to be restored from trash by dragging it into 'All notes'
  2. Perhaps 'All notes' should be renamed to 'Notes'?

Notes
I'

mpeyper
mpeyper commented Mar 19, 2019

There is an existing PR created to add docs to testing-library-docs from when testHook was part of react-testing-library. Since it was removed and the code merged with this library, the PR has stalled waiting on updates to change it to reference this library instead.

If anyone wants to take over the PR and update it accordingly, you are more than welcome. You can even [add yourself as a

RyanChristian4427
RyanChristian4427 commented Mar 12, 2020

Intended outcome

I'm building an application, and after doing some work with MobX, I ran a production build to ensure everything was working as expected, but it errored out. Development build does work exactly as intended, however.

Actual outcome

I get the following error:

✖ ERROR ./node_modules/mobx-react-lite/dist/observer.d.ts
ERROR in ./node_modules/mobx-react-lite/dist

组件可视化拖拽,页面搭建,源码码生成工具,自由拖拽嵌套,可实现任何真实开发中的复杂页面,所见即所得,可完美还原UI设计,多平台展示支持,项目于2020.2.22开源,喜欢的点颗星支持鼓励一下!visual drag and drop, free nesting, real-time preview of components, real-time tracking, WYSIWYG, perfect UI design restoration, source code Generated

  • Updated Jun 14, 2020
  • TypeScript
cdoe
cdoe commented Nov 14, 2019

For Firestore collections and docs, it would be nice if each of the ...Data hooks would automatically add the idField (if provided) as a key/value to the <T> generic.

For example, the useDocumentData hook would return something like T & { idField: string } instead of just T. In this case, idField should be represented by the actual string value entered into options.idField.

D

keeganstothert
keeganstothert commented Mar 10, 2020

https://github.com/facebook/react/issues/18178

my strack trace links the above issue with this code in react-use-form-state:

if (formState.current.touched[name] == null) {
 >>>  formState.setTouched(_defineProperty({}, name, false));
}

I'm still digging into this because Cannot update a component from inside the function body of a different component. has popped u

react-tracked
dai-shi
dai-shi commented Jan 16, 2020

Redux Style Guide: https://redux.js.org/style-guide/style-guide

  • Do Not Mutate State: Yes
  • Reducers Must Not Have Side Effects: Yes
  • Do Not Put Non-Serializable Values in State or Actions: Yes, but not necessarily
  • Only One Redux Store Per App: Yes but not necessarily
  • Use Redux Toolkit for Writing Redux Logic: No
  • Use Immer for Writing Immutable Updates: Yes, but not necessarily

Improve this page

Add a description, image, and links to the react-hooks topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the react-hooks topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.