-
-
Notifications
You must be signed in to change notification settings - Fork 206
LiveQuery Not Working 1.0.26? ParseLiveList #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pastordee
Indeed there are changes is LiveQuery. In the README of 1.0.26 you can see, how you have to use it now. ParseLiveList is just a new feature build on LiveQuery. |
Yes everything is the same is only on one page I have added the ParseLiveList to test it, It loads the list fine but when you edit or add a new item the list don't reload, as for the other pages, I have not touched them but LiveQuery is not working for then neither . |
Your project is not open source right? Otherwise I would have a look in the code. It seems like the LiveQuery connection is not established. Could you please add |
This is the app I don’t mind if you want to help that will be great https://pcdl.page.link/prayers I’m on the road now when I get home I will turn Debug |
In case turning on debug gives us no hint, I would be happy to peak into the code. |
On my IOS emulator, I have the same problem. |
The problem is a different behavior of |
@pastordee |
Thank you so much, my live query is working and with ParseLiveListWidget when I edit on another device it shows in debug that it has been updated but ParseLiveListWidget don't reload. `_queryBuilder = QueryBuilder(Journal()) ParseLiveListWidget(
` |
@pastordee Then try again and let me know if it made any difference. |
@pastordee |
sorry I paste the wrong thing that's how I have it in my code `ParseLiveListWidget(
|
@pastordee Could you perform the second and third change in #330 (comment) and give me an update? |
Sorry is the same Class: Journal |
Thanks again for your hard work I really appreciate it and God bless |
@pastordee |
@pastordee |
@pastordee |
@pastordee |
Morning and thank you will be waiting for the update.
… On 13 Mar 2020, at 11:00, Maximilian Fischer ***@***.***> wrote:
@pastordee <https://github.com/pastordee>
I think I found the problem.
There a Exception gets thrown, if ParseLiveList is used together with a Custom ParseObject.
Will be fixed soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#330 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF7UF6GQF7O7UPOE5YKUGNDRHIG5XANCNFSM4LFRDMHA>.
|
reference #335 |
@pastordee |
It works like magic thank you so much can you please do PR and add #334 to it as it fixes that bug when the query dose not match thanks |
@pastordee |
@maaeps |
You mean to base ParseLiveListWidget on SliverList? |
Yes
Pastor David Frimpong
Creator and founder of Prayer Circle
Prayer Circle ⭕️ allows you to pray for people leave your prayer request, is also a prayer journal, you can create a group for you and your family, the saying is those who pray together stay together check it out
Downloaded it Today
https://pcdl.page.link/prayers
https://prayercircle.co.uk
… On 16 Mar 2020, at 09:03, Maximilian Fischer ***@***.***> wrote:
You mean to base ParseLiveListWidget on SilverList?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
or have both of them |
I've not worked with Slivers yet. |
* Release/1.0.26 - Update docs * Updated Live Queries related documentation (#301) * Added an example of how to update existing object values (#309) * Fixed the Parse().initialize's return value (#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Added example for update existing Object values Maybe need some correction. Thank you. Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Specifying return type of get<T> as T instead of dynamic (#310) * Fixed the Parse().initialize's return value (#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Specified T return type instead of dynamic for get<T> method Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Live query connection stream (#314) * Fixed the Parse().initialize's return value (#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * added live-query-client-event-stream * Update parse_live_query.dart * Cleanup Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Livequery reconnecting controller (#316) * Fix: reconnecting Done as in #315 (comment) described. * Changed type of Future Done as described in fischerscode@805e830#r37587405. * Revert "Changed type of Future" This reverts commit fecee76. * adding LiveQueryReconnectingController This is a solution for #315 (comment) How it works: - Only the LiveQueryReconnectingController handles reconnecting after a connection loss. - LiveQueryReconnectingController holds informations: 1. connection state of the device 2. did the user disconnected from the server 3. is currently a connection to the server estalished - LiveQueryReconnectingController tries to reconnect after preset timespans. * cleanup * remove _userDisconnected from Client This is not needed any more. Keeping track of this information is now done by LiveQueryReconnectingController. * subscribe(query) modified Wait until client is connected to live-query-server. Fixes fischerscode@d058eb0#r37612749 * Parsequery OR (#317) * Start adding or First idea for #213 Works with normal Query and LiveQuery. Missing: - any kind of "UserError handling" - further testing * Update parse_query.dart * Fix for Sembast-API change (#322) See: #321 (comment) * added QueryBuilder.copy(QueryBuilder<T> query) (#320) * added QueryBuilder.copy(QueryBuilder<T> query) Added a implementation to create a new QueryBuilder based on an old one. This is a deep copy. Tested only with basic queries. * added QueryBuilder.copy(QueryBuilder<T> query) Added a implementation to create a new QueryBuilder based on an old one. This is a deep copy. Tested only with basic queries. * ParseLiveList (#324) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * added ParseACL to parseEncode (#326) As described in #325 (comment). Should Fix #325 * ParseLiveList Performance improvement (#327) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * LiveList - Performance Improvement This is the change mentioned in #324 (comment) Requires #326 * LiveList - Performance Improvement This is the change mentioned in #324 (comment) Requires #326 * example_livelist: use clientKey * Changed example_livelist query In the README I wrote, you can use a field called "show" to hide elements. * ParseLiveListElementSnapshot added (#329) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * LiveList - Performance Improvement This is the change mentioned in #324 (comment) Requires #326 * LiveList - Performance Improvement This is the change mentioned in #324 (comment) Requires #326 * example_livelist: use clientKey * Changed example_livelist query In the README I wrote, you can use a field called "show" to hide elements. * Remove: RemovedItemBuilder duplicade to ChildBuilder * removed firstBuild * ParseLiveListElementSnapshot added * Clear unsaved changes (#331) * added clearUnsavedChanges An idea for #318 * moved clearUnsavedChanges to ParseBase * LiveQueryController: connect at init (#332) Should fix #330 * LiveList: fixed defaultBuilder (#333) * Added generics to Query/LiveQuery (#336) * LiveQuery: fixes list is null (#334) * Fix: #341 (#342) It seems like `subscription.on(LiveQueryEvent.update` reuses a existing object. * Updating LiveQuery for web (#340) * LiveQuery: fixes list is null * Updating LiveQuery for web parse_live_query_web was outdated compared to parse_live_query. Note: parse_live_query was copied and fixed again for this change. Co-authored-by: Phill Wiggins <[email protected]> * Release/1.0.26 - Code formatting, remove lint issues Co-authored-by: mregandla <[email protected]> Co-authored-by: L. Rommy Arbantas <[email protected]> Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Michal Baran <[email protected]> Co-authored-by: Maximilian Fischer <[email protected]>
This is still not working for anroid. @maaeps how did you fix it please? |
@hamidabdulmalik I am sorry, but without a clear error description, I can not help you. There are too many factors. |
@maaeps |
@pastordee
|
@maaeps why it load each results separately? |
@ZeroNilZero |
* Release/1.0.26 - Update docs * Updated Live Queries related documentation (parse-community#301) * Added an example of how to update existing object values (parse-community#309) * Fixed the Parse().initialize's return value (parse-community#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (parse-community#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Added example for update existing Object values Maybe need some correction. Thank you. Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Specifying return type of get<T> as T instead of dynamic (parse-community#310) * Fixed the Parse().initialize's return value (parse-community#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (parse-community#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Specified T return type instead of dynamic for get<T> method Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Live query connection stream (parse-community#314) * Fixed the Parse().initialize's return value (parse-community#307) * Release/1.0.26 - Update docs * Updated Live Queries related documentation (parse-community#301) * Fixed the parse initialize method Parse().initialize returns a new instantiation of the Parse class, but it should return the initialized instance. Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * added live-query-client-event-stream * Update parse_live_query.dart * Cleanup Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Phill Wiggins <[email protected]> Co-authored-by: mregandla <[email protected]> * Livequery reconnecting controller (parse-community#316) * Fix: reconnecting Done as in parse-community#315 (comment) described. * Changed type of Future Done as described in 805e830#r37587405. * Revert "Changed type of Future" This reverts commit fecee76. * adding LiveQueryReconnectingController This is a solution for parse-community#315 (comment) How it works: - Only the LiveQueryReconnectingController handles reconnecting after a connection loss. - LiveQueryReconnectingController holds informations: 1. connection state of the device 2. did the user disconnected from the server 3. is currently a connection to the server estalished - LiveQueryReconnectingController tries to reconnect after preset timespans. * cleanup * remove _userDisconnected from Client This is not needed any more. Keeping track of this information is now done by LiveQueryReconnectingController. * subscribe(query) modified Wait until client is connected to live-query-server. Fixes d058eb0#r37612749 * Parsequery OR (parse-community#317) * Start adding or First idea for parse-community#213 Works with normal Query and LiveQuery. Missing: - any kind of "UserError handling" - further testing * Update parse_query.dart * Fix for Sembast-API change (parse-community#322) See: parse-community#321 (comment) * added QueryBuilder.copy(QueryBuilder<T> query) (parse-community#320) * added QueryBuilder.copy(QueryBuilder<T> query) Added a implementation to create a new QueryBuilder based on an old one. This is a deep copy. Tested only with basic queries. * added QueryBuilder.copy(QueryBuilder<T> query) Added a implementation to create a new QueryBuilder based on an old one. This is a deep copy. Tested only with basic queries. * ParseLiveList (parse-community#324) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * added ParseACL to parseEncode (parse-community#326) As described in parse-community#325 (comment). Should Fix parse-community#325 * ParseLiveList Performance improvement (parse-community#327) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * LiveList - Performance Improvement This is the change mentioned in parse-community#324 (comment) Requires parse-community#326 * LiveList - Performance Improvement This is the change mentioned in parse-community#324 (comment) Requires parse-community#326 * example_livelist: use clientKey * Changed example_livelist query In the README I wrote, you can use a field called "show" to hide elements. * ParseLiveListElementSnapshot added (parse-community#329) * Created ParseLiveList * LiveList & LivListBuilder works * Cleanup * changed to animated list * Fix in dataloading * updated AnimatedList * Finished Animations & cleanup * handle reconnect * Added dispose methodes & renamed classes & cleanup * cleanup * Fix animation duration * added README ParseLiveList section * Initialized example_livelist * Update application_constants.dart * Update .gitignore * Revert "Update .gitignore" This reverts commit 4d8982d. * Update .gitignore * HotFix: object Update from client If the client changes the object. (ParseObject does not get copied) * Implemented simple example * Update README.md * Update main.dart * Update README.md * Update README.md * LiveList - Performance Improvement This is the change mentioned in parse-community#324 (comment) Requires parse-community#326 * LiveList - Performance Improvement This is the change mentioned in parse-community#324 (comment) Requires parse-community#326 * example_livelist: use clientKey * Changed example_livelist query In the README I wrote, you can use a field called "show" to hide elements. * Remove: RemovedItemBuilder duplicade to ChildBuilder * removed firstBuild * ParseLiveListElementSnapshot added * Clear unsaved changes (parse-community#331) * added clearUnsavedChanges An idea for parse-community#318 * moved clearUnsavedChanges to ParseBase * LiveQueryController: connect at init (parse-community#332) Should fix parse-community#330 * LiveList: fixed defaultBuilder (parse-community#333) * Added generics to Query/LiveQuery (parse-community#336) * LiveQuery: fixes list is null (parse-community#334) * Fix: parse-community#341 (parse-community#342) It seems like `subscription.on(LiveQueryEvent.update` reuses a existing object. * Updating LiveQuery for web (parse-community#340) * LiveQuery: fixes list is null * Updating LiveQuery for web parse_live_query_web was outdated compared to parse_live_query. Note: parse_live_query was copied and fixed again for this change. Co-authored-by: Phill Wiggins <[email protected]> * Release/1.0.26 - Code formatting, remove lint issues Co-authored-by: mregandla <[email protected]> Co-authored-by: L. Rommy Arbantas <[email protected]> Co-authored-by: James Brinkerhoff <[email protected]> Co-authored-by: Michal Baran <[email protected]> Co-authored-by: Maximilian Fischer <[email protected]>
Sorry, maybe I miss something. Have you done implemented ParseLiveSliverListWidget? I did not find any reference. Sorry, if I miss something |
LiveQuery Not Working since updating to 1.0.26 with ParseLiveList, it does not give any error.
new post and update do not take effect, is there something I have to do with LiveQuery subscription and is anyone facing the same thing.
ps, the app on 1.0.25 is working fine.
The text was updated successfully, but these errors were encountered: