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

Not working in Page #1

Open
rankun203 opened this issue Mar 24, 2021 · 1 comment
Open

Not working in Page #1

rankun203 opened this issue Mar 24, 2021 · 1 comment

Comments

@rankun203
Copy link
Contributor

We are using this to subscribe to atom in a Page, and when we update the values to the atom, the this.data value on Page is not updating.

Looking into https://github.com/Wiredcraft/miniprogram-tools/blob/master/packages/sparrow/src/behavior.ts#L42 I found it's not hooking onto a page life cycle, only to a component.

@rankun203
Copy link
Contributor Author

One way we could resolve this issue is to split our Page component into very basic stuff that's required to be in Page (like sharing), but the rest all into a component so can utilize this tool.

Is there a way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant