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

Implement the Symbol class to represent null #96

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Implement the Symbol class to represent null #96

merged 2 commits into from
Sep 16, 2024

Conversation

ogaclejapan
Copy link
Contributor

@ogaclejapan ogaclejapan commented Sep 16, 2024

The Symbol class has been implemented to represent null values for DataModel<T>. With the recent addition of Optional Query, there have been instances where a QueryObject can be nullable. To address this, a fallback function has been included in the runtime package module.

  • orNone
  • orPending
val query1: QueryObject<String> = rememberQuery(..)
val query2: QueryObject<String>? =  rememberQueryIf(..)
Await(query1, query2.orNone()) { data1, data2 ->
    // do something with data1 and data2
}

refs: #95

The Symbol class has been implemented to represent null values for `DataModel<T>`. With the recent addition of Optional
Query, there have been instances where a `QueryObject` can be nullable. To address this, a fallback function has been
included in the runtime package module.

refs: #95
@ogaclejapan ogaclejapan merged commit a372f6e into main Sep 16, 2024
3 checks passed
@ogaclejapan ogaclejapan deleted the symbol branch September 16, 2024 08:21
@github-actions github-actions bot mentioned this pull request Oct 13, 2024
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 this pull request may close these issues.

1 participant