简体   繁体   中英

Best performance to passing data between controllers

I'am studying RxSwift and have this one case. From tableView cell, I go to info restaurant, and if I change the rate for this restaurant, I want to change this rate in tableView too, but I don't want to update tableView, because restaurants are downloaded from the backend, cause restaurants data is not loaded every time when viewWillApear is called. Now I'm using cloujers, in prepareForSegue, I'm setting a new rate in cell from its info. I read that the cloujers are used in a lot of resources, can this be done with the help of RxSwift or another best way?

This is best library to work with collection view and table view in RxSwift

https://github.com/RxSwiftCommunity/RxDataSources

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM