Retool Offline Mode? Does it work for js queries?

So just a thing we found out while working with Retool mobile in offline

When i enable a write for a javascript query ,it is executing in offline mode itself
Ok no problem if it does so. but im triggering a s3 resource query inside js script,since i enabled 'write' for that resource query, it goes pending mode.

And im passing additional scopes from js script for that trigger. I noticed when i come back online, the additonal scope values are not present for the s3 resource query to resume or start uplaoding therefore fails.

1 Like

I am also curious if there are best practices around this type of use case.

Hi @Elaya_Bharathi , If you are adding the additional scopes from within the js query that triggers the s3 resource, then, yes, it would be lost. Perhaps in your js query, you can set a variable with that additional scope and reference that in your s3 query. Then it would still be there when coming back online.

Can you send screenshots of your queries?

Thanks! :grinning: