Closed pgangwani closed 2 months ago
@MiroslavPetrik : Please review this issue and PR
The useFieldInitialValue hook indeed accepts the RESET
symbol, so the request seems valid.
But looking at it practically, I would advise not to use it in such a way.
The purpose of the initialValue
prop is to set the hydrated data, e.g. when you fetch that from the server.
The RESET
symbol value, is to clear any changes back to the first hydrated value, which best is done via the reset action.
Do you really need it?
Describe the bug I noticed that List component has missing type to accept RESET symbol.
To Reproduce Steps to reproduce the behavior:
Expected behavior Like initialValue in useList(,{initialValue}), it should accept RESET symbol.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.