@mako542b
Posted
It seems like after typing new letter, some previous definitions are still visible - like after 'm' - (def = 'abb of milion...' ) i type o, among the defs of 'mo' the 'abb of milion...' doesn't disappear, but adding letter (like p => mop), and erasing it, the extra def vanishes. Maybe something with caching
Marked as helpful
@Pawel1894
Posted
@mako542b Do you mean that after deleting search term it is vanishing the last search term? I'm not sure if I understood it correctly.
@mako542b
Posted
@Pawel1894 No, like when you have query, say 'm' - you get the response, then you type another character (without deleting previous query) - you get new response, but some data from previous state seem to still be there
@Pawel1894
Posted
@mako542b Oh i see. Thank you ;) I think i managed to fix it, please test it if you can. The problem was i had duplicated keys for meanings data and react was not refreshing it.
@mako542b
Posted
@Pawel1894 Yes, it works fine. What did you use as a key now? The api response doesn't seem very 'react - map' friendly - lacking some kind of ids for objects
@Pawel1894
Posted
@mako542b I just skiped the key prop xd I guess it's fine to do that in this case since this response isn't editable anyway.