Skip to content
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

[bug] 'cloud.invoke()' can not running at the cloud function named '__init__' #1229

Closed
1 of 2 tasks
Pidbid opened this issue Jun 7, 2023 · 0 comments · Fixed by #1230
Closed
1 of 2 tasks

[bug] 'cloud.invoke()' can not running at the cloud function named '__init__' #1229

Pidbid opened this issue Jun 7, 2023 · 0 comments · Fixed by #1230
Assignees

Comments

@Pidbid
Copy link

Pidbid commented Jun 7, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

https://laf.dev

What happened

Hi,I have using laf for a long time. Start with version 0.8 of laf. I know it's now recommended to import functions using import, but the old functions were complicated to modify, so I kept the 'cloud.invoke' notation.
But I found that the inability to run the cloud.invoke statement inside the init function seems to be a bug.
WechatIMG1682

How to reproduce

1, Create an init function.
2, Create an another cloud function.
3, Write 'await cloud.invoke('xxxxx',{})' in init function.
4, Restart app.
5, Bug .

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants