Client
Session.setDefault(key, value)
import { Session } from 'meteor/session' Source Set a variable in the session if it hasn't been set before. Otherwise works exactly the same as Session.set.
Arguments
- key String
-
The key to set, eg,
selectedItem - value EJSON-able Object or undefined
-
The new value for
key
Please login to continue.